A machine learning approach to predicting short-term mortality risk in patients starting chemotherapy

preprint OA: closed CC-BY-NC-ND-4.0
📄 Open PDF Full text JSON View at publisher
AI-generated deep summary by qwen3.7-flash, 2026-09-09 · read from full text

This study developed and validated a machine learning algorithm to predict short-term mortality risk in patients initiating new chemotherapy regimens. Using electronic health record data from nearly 27,000 patients at a large cancer center, the model achieved high accuracy for both 30-day and 180-day mortality predictions across various cancer types and stages. The authors note that while the model outperformed traditional estimates based on randomized trials or SEER data, further research is needed to confirm its generalizability and clinical feasibility. The paper does not explicitly discuss endometriosis or adenomyosis; it was included in the corpus via a keyword match in the upstream search index.

Read from the paper's body, not the abstract. Not a substitute for reading the paper. No clinical advice. How this works

Abstract

ABSTRACT Background Cancer patients who die soon after starting chemotherapy incur costs of treatment without benefits. Accurately predicting mortality risk from chemotherapy is important, but few patient data-driven tools exist. We sought to create and validate a machine learning model predicting mortality for patients starting new chemotherapy. Methods We obtained electronic health records for patients treated at a large cancer center (26,946 patients; 51,774 new regimens) over 2004-14, linked to Social Security data for date of death. The model was derived using 2004-11 data, and performance measured on non-overlapping 2012-14 data. Findings 30-day mortality from chemotherapy start was 2.1%. Common cancers included breast (21.1%), colorectal (19.3%), and lung (18.0%). Model predictions were accurate for all patients (AUC 0.94). Predictions for patients starting palliative chemotherapy (46.6% of regimens), for whom prognosis is particularly important, remained highly accurate (AUC 0.92). To illustrate model discrimination, we ranked patients initiating palliative chemotherapy by model-predicted mortality risk, and calculated observed mortality by risk decile. 30-day mortality in the highest-risk decile was 22.6%; in the lowest-risk decile, no patients died. Predictions remained accurate across all primary cancers, stages, and chemotherapies—even for clinical trial regimens that first appeared in years after the model was trained (AUC 0.94). The model also performed well for prediction of 180-day mortality (AUC 0.87; mortality 74.8% in the highest risk decile vs. 0.2% in the lowest). Predictions were more accurate than data from randomized trials of individual chemotherapies, or SEER estimates. Interpretation A machine learning algorithm accurately predicted short-term mortality in patients starting chemotherapy using EHR data. Further research is necessary to determine generalizability and the feasibility of applying this algorithm in clinical settings.
Full text 43,323 characters · extracted from preprint-html · click to expand
A machine learning approach to predicting short-term mortality risk in patients starting chemotherapy | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results A machine learning approach to predicting short-term mortality risk in patients starting chemotherapy Aymen A. Elfiky , Maximilian J. Pany , Ravi B. Parikh , Ziad Obermeyer doi: https://doi.org/10.1101/204081 Aymen A. Elfiky 1 Dana-Farber Cancer Institute , Boston, MA 2 Harvard Medical School , Boston, MA 3 Brigham and Women’s Hospital , Boston, MA MD, MOH, MSc, MBA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Maximilian J. Pany 2 Harvard Medical School , Boston, MA 3 Brigham and Women’s Hospital , Boston, MA BA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Ravi B. Parikh 2 Harvard Medical School , Boston, MA 3 Brigham and Women’s Hospital , Boston, MA MD, MPP Find this author on Google Scholar Find this author on PubMed Search for this author on this site Ziad Obermeyer 2 Harvard Medical School , Boston, MA 3 Brigham and Women’s Hospital , Boston, MA 4 Ariadne Labs, Brigham and Women’s Hospital and Harvard School of Public Health , Boston, MA MD, MPhil Find this author on Google Scholar Find this author on PubMed Search for this author on this site Abstract Full Text Info/History Metrics Supplementary material Preview PDF ABSTRACT Background Cancer patients who die soon after starting chemotherapy incur costs of treatment without benefits. Accurately predicting mortality risk from chemotherapy is important, but few patient data-driven tools exist. We sought to create and validate a machine learning model predicting mortality for patients starting new chemotherapy. Methods We obtained electronic health records for patients treated at a large cancer center (26,946 patients; 51,774 new regimens) over 2004-14, linked to Social Security data for date of death. The model was derived using 2004-11 data, and performance measured on non-overlapping 2012-14 data. Findings 30-day mortality from chemotherapy start was 2.1%. Common cancers included breast (21.1%), colorectal (19.3%), and lung (18.0%). Model predictions were accurate for all patients (AUC 0.94). Predictions for patients starting palliative chemotherapy (46.6% of regimens), for whom prognosis is particularly important, remained highly accurate (AUC 0.92). To illustrate model discrimination, we ranked patients initiating palliative chemotherapy by model-predicted mortality risk, and calculated observed mortality by risk decile. 30-day mortality in the highest-risk decile was 22.6%; in the lowest-risk decile, no patients died. Predictions remained accurate across all primary cancers, stages, and chemotherapies—even for clinical trial regimens that first appeared in years after the model was trained (AUC 0.94). The model also performed well for prediction of 180-day mortality (AUC 0.87; mortality 74.8% in the highest risk decile vs. 0.2% in the lowest). Predictions were more accurate than data from randomized trials of individual chemotherapies, or SEER estimates. Interpretation A machine learning algorithm accurately predicted short-term mortality in patients starting chemotherapy using EHR data. Further research is necessary to determine generalizability and the feasibility of applying this algorithm in clinical settings. INTRODUCTION Chemotherapy lowers the risk of cancer recurrence in early-stage cancers, and can improve survival and symptoms in later stage disease. Balancing these benefits against chemotherapy’s considerable risks is challenging. There is growing evidence that chemotherapy is started too often, too late in the cancer disease trajectory, 1 ⇓ ⇓ – 4 and many patients die soon after initiating treatment. These patients experience burdensome symptoms and financial costs, without many of the potential benefits of chemotherapy. 5 National organizations now track the fraction of patients who die within two weeks of receiving chemotherapy as a marker of poor quality of care, 6 , 7 and this number has been rising rapidly. 1 , 8 A key factor underlying these trends is the difficulty of accurately predicting the risk of serious adverse events, especially death, when initiating chemotherapy. Side effects of chemotherapy are variable, and the influence of comorbidities is complex, all making the risk calculus challenging. 9 ⇓ ⇓ – 12 , 13 Cognitive biases also lead to underestimation of risk of death, 14 – 15 particularly in patients with metastatic cancer 16 , 17 who often believe that their disease is curable. 18 , 19 Physicians themselves are notoriously bad at estimating prognosis in patients with cancer, 20 , 21 and overly optimistic estimates can influence patients’ chemotherapy decisions. 26 ⇓ ⇓ ⇓ ⇓ – 31 Currently, doctors may use randomized trial data to estimate mortality for individual regimens, or online tools based on Surveillance, Epidemiology, and End Results (SEER) data to obtain mortality risk by age, sex, and primary cancer. 14 , 28 While informative, these tools provide mortality estimates for broad populations of patients, and their relevance to individual decisions is unclear. Individualized decision support tools do exist, 29 but require a substantial investment of time and resources to collect and enter data not readily available in existing records. There is considerable enthusiasm for the role of advanced algorithms to improve prediction, by drawing on the rich data stored in electronic health records (EHRs). 30 However, there is little evidence that such algorithms can provide meaningful inputs to clinical decision making, in cancer or elsewhere. Here we develop and validate a machine learning algorithm to predict near-term mortality risk in patients starting new chemotherapy regimens. New chemotherapy is a critical event in the cancer disease trajectory, and can serve as a ‘pause point’ to weigh difficult questions. Objective predictions of short-term mortality at this time could be useful to doctors and patients in several ways. First and foremost, estimated likelihood of serious adverse events is an important input to discussions of risks and benefits of treatments, particularly for patients undergoing palliative chemotherapy. 31 ⇓ ⇓ – 34 Accurate forecasts could also help guide important decisions for patients around family and financial arrangements. Finally, patients at high mortality risk could be prompted to complete advance care planning processes or offered palliative care consultation. METHODS Study Population We obtained EHR data for all cancer patients receiving chemotherapy at the Dana-Farber/Brigham and Women’s Cancer Center (DF/BWCC) from 2004–2014. We determined date of death by linking to the Social Security Administration’s Death Master File. We classified patients by primary cancer and presence of distant-stage disease, determined using registry data (for patients diagnosed at DF/BWCC) and International Classification of Diseases (ICD) codes for metastases (for patients not diagnosed at DF/BWCC or who did not have registry data; and to identify progression to distant-stage disease in those previously diagnosed at DF/BWCC). 35 While diagnosis codes have limitations for determination of cancer stage, they are generally believed to reliably identify presence or absence of distant-stage disease. 36 The institutional review boards of Dana-Farber Cancer Institute and Partners HealthCare approved this study and granted a waiver of informed consent from study participants. Statistical Analysis Dataset Our primary outcome was death within 30 days of starting new systemic chemotherapy regimens. Secondary outcomes were 30-day mortality in pre-specified subgroups of interest (described below) as well as overall 180-day mortality. We constructed our dataset at the patient–chemotherapy regimen level, such that each observation was a new regimen. Model performance Machine learning models have the potential to ‘overfit’, or produce overly optimistic estimates of model performance based on spurious correlations in development data. We thus report results only in an independent validation set, which played no role in model development; as such, overfitting would only lead to poorer model performance in the validation set. Specifically, we used data from 2004–2011 for model derivation, and data from 2012–2014 for model validation. Importantly, while our dataset was at the patient–chemotherapy regimen level, we randomly assigned patients— not observations—to the derivation or validation sets, since observations describing different chemotherapy regimens in the same patient were not independent. As such, no patient appeared in both sets. We report area under the receiver operating characteristic curve (AUC) 37 with 95% confidence intervals, 38 overall and in subgroups of interest, notably age, sex, race, distant-stage disease, individual primary cancers, chemotherapy lines and regimens, and chemotherapy intent (palliative vs. curative, identified by the treating physician, via an EHR flag). To benchmark against existing prognostic models, we obtained one-year mortality estimates from large randomized trials of specific chemotherapies, and from the Surveillance, Epidemiology, and End Results (SEER) program. Predictors To transform raw EHR data into variables usable in a prediction model, we first pulled all data from the one-year period ending the day before chemotherapy initiation (we did not drop patients based on absence of data over this period). Raw data were aggregated into 23,641 potential predictors, in the following categories: demographics, prescribed medications, comorbidities and other grouped 35 ICD-9 diagnoses, procedures, 35 care utilization, vital signs, laboratory results, and terms derived from physician notes. For each potential predictor, we created two variables, the sum of related EHR entries over two time periods: 0-1 months (recent) and 1-12 months (baseline) prior to chemotherapy initiation. This strategy is outlined in more detail elsewhere. 39 We also included a variable indexing how many lines of chemotherapy the patient had in total prior to the current regimen. No data on the current regimen itself (agent, intent, etc.) were used in the predictive model. We dropped variables missing in over 99% of the development sample, leaving 5,390 predictors in the model. Algorithm We used high-dimensional statistical techniques designed to handle large sets of correlated predictors, specifically gradient boosted trees: a linear combination of decision trees similar to those used to derive many clinical decision rules 40 (R package: xgboost). 41 We used 4-fold cross-validation in the development sample to choose model parameters ( e.g. , number of trees, variables per tree). The model was configured to produce individual-level probabilities of 30-day mortality. More details are available in the Supplemental Methods. Missing values Each split of each tree in the model ( e.g. , a split on sex) had a ‘default’: the value ( e.g. , male or female) that occurred more frequently in the training data. Observations with missing values for a given variable were assigned to the default side of the split. This was effectively a split-specific, probabilistic imputation function that allowed us to avoid dropping observations missing data. Model parameters Given the complexity of the model, a succinct summary of its parameters was challenging. We attempted to do so by breaking down model predictions into the linear contributions of individual variables, using a decomposition of model predictions on all predictors (in the development sample). We calculated the (linear) sum of squares for each individual variable included in the machine learning model, and interpreted the residual sum of squares as the contribution of non-linear terms and interactions used by the model. Since our model used over 5000 predictors, we chose to report only a small selection, specifically those that most explained model variance, and those identified as predictors of mortality in prior studies. 29 , 42 , 43 RESULTS Study Population We identified 26,946 patients initiating 51,774 discrete chemotherapy regimens over 2004–2014; 59.4% had distant-stage disease. Table 1 shows baseline patient characteristics at time of chemotherapy initiation. The most common chemotherapy regimens (derivation and validation sets) were carboplatin–paclitaxel (n=4042), gemcitabine (n=2185), and albumin-bound paclitaxel (n=1985); 3.4% of the validation set (n=523) received chemotherapy regimens that first appeared in 2012 or later, and thus did not appear in the derivation set, including experimental, non-FDA-approved agents (2.3%; n=343). View this table: View inline View popup Download powerpoint Table 1. Baseline patient characteristics of model derivation and validation sets. There were several significant differences between the 2004–11 derivation set and the 2012–14 validation set, including age at initiation, race, primary cancer, and prior chemotherapy beyond the first line. Such differences between derivation and validation sets were expected, and indeed intentional: a validation set drawn from later years of data was chosen to reflect the constant evolution of cancer epidemiology and treatment. This made the prediction task more difficult, since algorithms trained on past data cannot always perform well in the future, 44 but accurately represented the difficulties algorithms face in evolving real-world settings. Model performance Among patients in the validation set, overall 30-day mortality was 2.1%, and 3.1% among those initiating chemotherapy with palliative intent. The model performed accurately for predicting 30-day mortality for all patients, irrespective of chemotherapy intent (AUC: 0.94; 95% CI, 0.93 to 0.95). It also performed well when restricting to patients receiving palliative chemotherapy (AUC: 0.92; 95% CI, 0.91 to 0.94). To illustrate the concrete implications of this, we used model predictions to individually rank patients by 30-day mortality risk, a commonly used way of stratifying risk groups. 37 30-day mortality in the highest decile of predicted risk was 22.6%, while in the lowest risk decile, not a single patient died. Figure 1 shows observed survival over the 180 days after palliative chemotherapy initiation by decile of model-predicted 30-day mortality risk. 180-day mortality was higher overall, at 18.4%, but model-predicted 30-day mortality was also an accurate predictor of 180-day mortality (AUC 0.87). 180-day mortality in the highest risk decile was 74.8%, vs. 0.2% in the lowest risk decile. Download figure Open in new tab Figure 1. Observed survival over the 180 days from the initiation of palliative chemotherapy, by decile of model-predicted mortality risk. q1 denotes the highest predicted risk decile, q2 the second highest, q9 the second lowest, and q10 the lowest. Overall denotes overall mean survival in all patients, irrespective of model-predicted risk. Table 2 shows model performance for predicting 30-day mortality in additional patient subgroups of interest. The model performed equally well across many kinds of primary cancers, demographic groups, and chemotherapy regimens. In distant-stage disease (average 30-day mortality: 2.9%), 30-day mortality in the highest risk decile was 22.7%, vs. 0.0% in the lowest decile (AUC: 0.94; 95% CI, 0.93 to 0.95). Strikingly, predictions were accurate even for experimental new clinical trial regimens first observed over 2012–14 (AUC: 0.94; 95% CI, 0.88 to 1.0)—i.e., regimens that first appeared in years of data to which the model was not exposed in the training process. View this table: View inline View popup Download powerpoint Table 2. Model performance in selected subgroups. A key question is whether model predictions are accurate enough to be useful across a range of primary cancers, stages of disease, lines of chemotherapy—scenarios whose prognoses vary widely. Table 2 thus also presents measures of overall predictive accuracy for first line (AUC 0.94 for 30-day mortality, 0.87 for 180-day mortality) vs. later lines (AUC 0.94 for 30-day mortality, 0.86 for 180-day mortality) of chemotherapy. eTable 1 presents extended results on accuracy for 30- and 180-day mortality across lung, colorectal, breast, and prostate cancers by stage and line of chemotherapy. Comparisons to other prognostic estimates We compared model performance to two external sources of mortality predictions, focusing on patients with distant-stage disease for whom prognostic estimates are most valuable. First, we obtained mortality data from four randomized trials of treatments for colorectal adenocarcinoma, non-small cell lung adenocarcinoma, small cell lung carcinoma, and squamous cell carcinoma of the head and neck. 45 ⇓ ⇓ – 48 Figure 2a shows observed one-year mortality (the only mortality outcome reported consistently) for patients on these regimens in our validation sample, compared to: (1) point estimates of average one-year mortality from relevant clinical trials, and (2) quintiles of estimated mortality risk (30-day) from our model. The overall AUC for RCT mean estimates was 0.555 (95% CI, 0.513 to 0.598), compared to 0.771 (95% CI, 0.735 to 0.808) for our individual-level model-based estimates for these same patients. Download figure Open in new tab Figure 2. Observed one-year mortality (y-axis) from start of chemotherapy for patients with specific combinations of distant-stage cancers and chemotherapies, shown against mortality predictions from three sources (x-axis). The 45° dotted line denotes equivalence of observed and estimated mortality. Orange lines, with shaded 95% confidence intervals, show mean observed one-year mortality against quintiles of estimated one-year mortality based on our model-predicted 30-day mortality risk. Blue lines, with shaded 95% confidence intervals, show observed one-year mortality against predictions from two other sources. In Panel (a) , we show mean one-year mortality and 95% CI (blue dots and bars) from individual randomized trials. Of note, trial data provide only single point estimates for mortality, based on average mortality in the trial, leading to one point estimate on the graphs. In Panel (b) , we show mean observed one-year mortality against quantiles of estimated one-year mortality risk from the National Cancer Institute’s Surveillance, Epidemiology, and End Results (SEER) program, estimated using cancer type, age, sex, and race. Histograms show the distribution of individual estimates of mortality risk, colored by source of estimate: orange for our model predictions, blue for RCT estimates (Panel a) and SEER estimates (Panel b). We also compared our mortality predictions to age-, sex-, race-, and cancer-specific mortality estimates from SEER, restricting to patients with advanced-stage cancers of lung and bronchus, colon and rectum, breast, and prostate to maximize comparability in populations. Figure 2b shows that our estimates were far more accurate (AUC: 0.810; 95% CI, 0.799 to 0.822) than SEER estimates (AUC: 0.600; 95% CI, 0.585 to 0.615) for predicting one-year mortality. Further details on construction of RCT and SEER estimates are in the Supplemental Methods and e Table 2 , and more detailed comparisons for subgroups are available in e Table 3 . View this table: View inline View popup Download powerpoint Table 3. Selected variables by risk decile and model variance explained. Key predictors Table 3 shows the distribution of key predictor variables used in the prediction model across risk deciles, as well as the proportion of model variance explained linearly by each variable. In general, key predictors of mortality identified in the literature were markedly different for patients in the highest vs. lowest model-predicted risk deciles: for example, summed comorbidity score 43 , age 42 , failure to thrive, heart rate, and certain laboratory data (e.g. C-reactive protein, white blood cell count, alkaline phosphatase). 29 But importantly, while these differences were striking, no one variable explained more than 2% of model predictions on its own. Indeed, the majority of variation in the predictions (86.4%) was not a linear function of any one predictor, indicating that the tree-based model relied heavily on complex non-linear functional forms and interactions among variables. DISCUSSION A machine learning model based on single-center EHR data accurately estimated individual mortality risk at the time of chemotherapy initiation. The model performed well across a range of cancer types, race, sex, and other demographic variables. Mortality estimates were accurate for palliative as well as curative chemotherapy regimens, for early-and distant-stage patients, and even for patients treated with clinical trial regimens introduced in years after the model was trained. Our model dramatically outperformed estimates from randomized trials and SEER data, both of which are routinely used by clinicians for quantitative risk predictions. It is notable that this model was able to predict mortality with considerable accuracy despite lacking genetic sequencing data, cancer-specific biomarkers, or indeed any detailed information about cancers beyond EHR data. This underscores the fact that common clinical data elements contained within an EHR—e.g. symptoms, comorbidities, prescribed medications, diagnostic tests—contain surprising amounts of signal for predicting key outcomes in cancer patients. Algorithmic predictions such as ours could be useful at several points along the care continuum. This could include providing accurate predictions of mortality risk to a provider or tumor board at the ‘point of decision,’ or fostering shared decision making between patient and provider at the ‘point of care.’ Short-term mortality risk predictions could help clinicians identify patients unlikely to benefit from chemotherapy beyond 30 days, and those who may benefit from early palliative care referral, advance care planning, and prompting to get financial and family affairs in order. For patients receiving systemic chemotherapy, predictable 30-day mortality may even be a useful quality indicator of avoidable treatment-associated harm. 49 Importantly, while machine learning algorithms require significant computing infrastructure to construct, once derived, they can be applied using only the computing power available on a personal computer or smartphone. This greatly facilitates potential integration into existing clinical systems. While our algorithm was developed using a single institution’s data, its data inputs are representative of what is generally available in structured format in EHRs, including ICD and procedure codes, medications, etc. Thus, there are no technical barriers to implementing this or similar algorithms in any organization’s clinical data to independently validate predictive power out of sample. To this end, code for our algorithm will be made publicly available (at http://labsysmed.org/wp-content/uploads/2017/02/ChemoMortalityAnalysis.rtf ). This study has several limitations. Our model was built on data from patients treated with chemotherapy, meaning that it answers the question: what is the mortality risk of a a patient starting chemotherapy today? This can be highly useful, since prognostic information informs many important decisions for patients and doctors at a critical point in the disease trajectory. But it also has several important caveats. First, predictions are unlikely to be accurate for untreated patients, meaning the model cannot answer the related question: what is the effect of chemotherapy on mortality risk? Second, our treated sample reflects the particular decisions around chemotherapy made by doctors and patients in our training dataset. Patients who could or would have started chemotherapy, but for some reason did not, would not be included, which can bias the sample. But—for better or worse—the direction of this bias is predictable: prevailing treatment decisions are generally aggressive. In our sample, 62.4% of patients with distant-stage disease received chemotherapy, and evidence suggests that physicians in a wide range of settings overestimate survival, and overuse chemotherapy. Thus, to the extent that there is bias in our dataset, it leads to the inclusion—not exclusion—of marginal patients, who otherwise might not have received chemotherapy. As a result, we believe this bias did not substantially distort validity. If such an algorithm were deployed in a real-world setting, periodic re-training of the model ( e.g. , each year or quarter) would ensure that model predictions reflected contemporaneous chemotherapy decision-making. This would address changing selection into treatment over time, and update the model to reflect broader changes in patient populations and chemotherapy technology. While we took pains to quantify predictive accuracy in an independent, recent validation set, the only way to truly validate such a model is prospectively. A model trained on pre-2012 data may lose accuracy as novel tumor diagnostics and therapies come online, although the accuracy of predictions for patients starting novel chemotherapies was encouraging in this regard. In addition, this is a single-institution study. Further validation is required using cohorts from different institutions. EHR data contain a multitude of biases introduced by physician behavior, institutional idiosyncrasies, and software platforms, among other limitations. These can significantly affect its adaptability and relevance to different care settings. In conclusion, our machine learning model accurately predicted mortality risk in patients at the time of chemotherapy initiation. While we are optimistic that accurate prognostic tools such as this could help to promote value-driven oncology care, the ideal next step would be a randomized trial of algorithmic estimates at the point of care. To be useful, predictive models must improve decision-making in the real world. Thus rigorous evaluation of predictions’ impact on outcomes is the gold standard test—but one that is often neglected in the literature, which focuses primarily on measuring predictive accuracy rather than real outcomes. REFERENCES 1. ↵ Emanuel EJ , Young-Xu Y , Levinsky NG , Gazelle G , Saynina O , Ash AS . Chemotherapy use among Medicare beneficiaries at the end of life . Ann Intern Med 2003 ; 138 ( 8 ): 639 – 43 . OpenUrl CrossRef PubMed Web of Science 2. ↵ Earle CC , Neville BA , Landrum MB , Ayanian JZ , Block SD , Weeks JC . Trends in the Aggressiveness of Cancer Care Near the End of Life . J Clin Oncol 2004 ; 22 ( 2 ): 315 – 21 . OpenUrl Abstract / FREE Full Text 3. ↵ Earle CC , Landrum MB , Souza JM , Neville BA , Weeks JC , Ayanian JZ . Aggressiveness of Cancer Care Near the End of Life: Is It a Quality-of-Care Issue? J Clin Oncol 2008 ; 26 ( 23 ): 3860 – 6 . OpenUrl Abstract / FREE Full Text 4. ↵ Saito AM , Landrum MB , Neville BA , Ayanian JZ , Earle CC . The effect on survival of continuing chemotherapy to near death . BMC Palliat Care 2011 ; 10 : 14 . OpenUrl CrossRef PubMed 5. ↵ Prigerson HG , Bao Y , Shah MA , et al. Chemotherapy Use, Performance Status, and Quality of Life at the End of Life . JAMA Oncol 2015 ; 1 ( 6 ): 778 – 84 . OpenUrl 6. ↵ Schnipper LE , Smith TJ , Raghavan D , et al. American Society of Clinical Oncology identifies five key opportunities to improve care and reduce costs: the top five list for oncology . J Clin Oncol Off J Am Soc Clin Oncol 2012 ; 30 ( 14 ): 1715 – 24 . OpenUrl 7. ↵ National Quality Forum . Cancer Measures [Internet]. Washington (DC) : 2012 . Available from: https://www.qualityforum.org/News_And_Resources/Endorsement_Summaries/Cancer_Measures_Endorsement_Summary.aspx 8. ↵ Greer JA , Pirl WF , Jackson VA , et al. Effect of early palliative care on chemotherapy use and end-of-life care in patients with metastatic non-small-cell lung cancer . J Clin Oncol Off J Am Soc Clin Oncol 2012 ; 30 ( 4 ): 394 – 400 . OpenUrl 9. ↵ Satariano WA , Ragland DR . The effect of comorbidity on 3-year survival of women with primary breast cancer . Ann Intern Med 1994 ; 120 ( 2 ): 104 – 10 . OpenUrl CrossRef PubMed Web of Science 10. ↵ Hall WH , Jani AB , Ryu JK , Narayan S , Vijayakumar S . The impact of age and comorbidity on survival outcomes and treatment patterns in prostate cancer . Prostate Cancer Prostatic Dis 2005 ; 8 ( 1 ): 22 – 30 . OpenUrl CrossRef PubMed Web of Science 11. ↵ Lee L , Cheung WY , Atkinson E , Krzyzanowska MK . Impact of Comorbidity on Chemotherapy Use and Outcomes in Solid Tumors: A Systematic Review . J Clin Oncol 2011 ; 29 ( 1 ): 106 – 17 . OpenUrl Abstract / FREE Full Text 12. ↵ van Gestel YRBM , Lemmens VEPP , de Hingh IHJT , et al. Influence of comorbidity and age on 1-, 2-, and 3-month postoperative mortality rates in gastrointestinal cancer patients . Ann Surg Oncol 2013 ; 20 ( 2 ): 371 – 80 . OpenUrl CrossRef PubMed Web of Science 13. ↵ Sarfati D , Koczwara B , Jackson C . The impact of comorbidity on cancer and its treatment . CA Cancer J Clin 2016 ; 66 ( 4 ): 337 – 50 . OpenUrl 14. ↵ Glas NA de, van de Water W , Engelhardt EG , et al. Validity of Adjuvant! Online program in older patients with breast cancer: a population-based study . Lancet Oncol 2014 ; 15 ( 7 ): 722 – 9 . OpenUrl CrossRef PubMed 15. ↵ Hoffmann TC , Mar CD . Clinicians' Expectations of the Benefits and Harms of Treatments, Screening, and Tests: A Systematic Review . JAMA Intern Med [Internet] 2017 [cited 2017 Jan 19 ];Available from: http://jamanetwork.com/journals/jamainternalmedicine/fullarticle/2596010 16. ↵ Weeks JC , Cook EF , O’Day SJ , et al. Relationship between cancer patients’ predictions of prognosis and their treatment preferences . JAMA 1998 ; 279 ( 21 ): 1709 – 14 . OpenUrl CrossRef PubMed Web of Science 17. ↵ Rose JH , O’Toole EE , Dawson NV , et al. Perspectives, Preferences, Care Practices, and Outcomes Among Older and Middle-Aged Patients With Late-Stage Cancer . J Clin Oncol 2004 ; 22 ( 24 ): 4907 – 17 . OpenUrl Abstract / FREE Full Text 18. ↵ Weeks JC , Catalano PJ , Cronin A , et al. Patients’ expectations about effects of chemotherapy for advanced cancer . N Engl J Med 2012 ; 367 ( 17 ): 1616 – 25 . OpenUrl CrossRef PubMed Web of Science 19. ↵ Temel JS , Greer JA , Admane S , et al. Longitudinal perceptions of prognosis and goals of therapy in patients with metastatic non-small-cell lung cancer: results of a randomized study of early palliative care . J Clin Oncol Off J Am Soc Clin Oncol 2011 ; 29 ( 17 ): 2319 – 26 . OpenUrl 20. ↵ Glare P , Virik K , Jones M , et al. A systematic review of physicians’ survival predictions in terminally ill cancer patients . BMJ 2003 ; 327 ( 7408 ): 195 . OpenUrl Abstract / FREE Full Text 21. ↵ Stone PC , Lund S . Predicting prognosis in patients with advanced cancer . Ann Oncol 2007 ; 18 ( 6 ): 971 – 6 . OpenUrl CrossRef PubMed Web of Science 22. Brundage MD , Davidson JR , Mackillop WJ . Trading treatment toxicity for survival in locally advanced non-small cell lung cancer . J Clin Oncol 1997 ; 15 ( 1 ): 330 – 40 . OpenUrl Abstract / FREE Full Text 23. Silvestri G , Pritchard R , Welch HG . Preferences for chemotherapy in patients with advanced non-small cell lung cancer: descriptive study based on scripted interviews . BMJ 1998 ; 317 ( 7161 ): 771 – 5 . OpenUrl Abstract / FREE Full Text 24. Hirose T , Yamaoka T , Ohnishi T , et al. Patient willingness to undergo chemotherapy and thoracic radiotherapy for locally advanced non-small cell lung cancer . Psychooncology 2009 ; 18 ( 5 ): 483 – 9 . OpenUrl CrossRef PubMed 25. Keating NL , Landrum MB , Rogers SO , et al. Physician factors associated with discussions about end-of-life care . Cancer 2010 ; 116 ( 4 ): 998 – 1006 . OpenUrl CrossRef PubMed Web of Science 26. ↵ Keating NL , Beth Landrum M , Arora NK , et al. Cancer patients’ roles in treatment decisions: do characteristics of the decision influence roles? J Clin Oncol Off J Am Soc Clin Oncol 2010 ; 28 ( 28 ): 4364 – 70 . OpenUrl 27. ↵ Liu P-H , Landrum MB , Weeks JC , et al. Physicians’ propensity to discuss prognosis is associated with patients’ awareness of prognosis for metastatic cancers . J Palliat Med 2014 ; 17 ( 6 ): 673 – 82 . OpenUrl CrossRef PubMed 28. ↵ Statistical Summaries - SEER Cancer Statistics [Internet] . [cited 2017 Jan 19 ];Available from: https://seer.cancer.gov/statistics/summaries.html 29. ↵ Gwilliam B , Keeley V , Todd C , et al. Development of prognosis in palliative care study (PiPS) predictor models to improve prognostication in advanced cancer: prospective cohort study . BMJ 2011 ; 343 : d4920 . OpenUrl Abstract / FREE Full Text 30. ↵ Rumball-Smith J , Shekelle PG , Bates DW . Using the Electronic Health Record to Understand and Minimize Overuse . JAMA 2017 ; 317 ( 3 ): 257 – 8 . OpenUrl CrossRef PubMed 31. ↵ Tsao M-S , Aviel-Ronen S , Ding K , et al. Prognostic and Predictive Importance of p53 and RAS for Adjuvant Chemotherapy in Non–Small-Cell Lung Cancer . J Clin Oncol 2007 ; 25 ( 33 ): 5240 – 7 . OpenUrl Abstract / FREE Full Text 32. ↵ Van Laar RK. Genomic signatures for predicting survival and adjuvant chemotherapy benefit in patients with non-small-cell lung cancer . BMC Med Genomics 2012 ; 5 : 30 . OpenUrl CrossRef PubMed 33. ↵ Dalerba P , Sahoo D , Paik S , et al. CDX2 as a Prognostic Biomarker in Stage II and Stage III Colon Cancer . N Engl J Med 2016 ; 374 ( 3 ): 211 – 22 . OpenUrl CrossRef PubMed 34. ↵ Kratz JR , He J , Van Den Eeden SK , et al. A practical molecular assay to predict survival in resected non-squamous, non-small-cell lung cancer: development and international validation studies . Lancet Lond Engl 2012 ; 379 ( 9818 ): 823 – 32 . OpenUrl 35. ↵ Healthcare Cost and Utilization Project (HCUP) . Clinical Classifications Software for Services and Procedures [Internet] . [cited 2017 Jan 19 ];Available from: https://www.hcup-us.ahrq.gov/toolssoftware/ccs_svcsproc/ccssvcproc.jsp 36. ↵ Cooper GS , Yuan Z , Stange KC , Amini SB , Dennis LK , Rimm AA . The Utility of Medicare Claims Data for Measuring Cancer Stage . Med Care 1999 ; 37 ( 7 ): 706 – 11 . OpenUrl CrossRef PubMed Web of Science 37. ↵ Meurer WJ , Toles J . Logistic regression diagnostics: Understanding how well a model predicts outcomes . JAMA 2017 ; 317 ( 10 ): 1068 – 9 . OpenUrl 38. ↵ DeLong ER , DeLong DM , Clarke-Pearson DL . Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach . Biometrics 1988 ; 44 ( 3 ): 837 – 45 . OpenUrl CrossRef PubMed Web of Science 39. ↵ Makar M , Ghassemi M , Cutler DM , Obermeyer Z . Short-term mortality prediction for elderly patients using Medicare claims data . Int J Mach Learn Comput 2015 ; 5 ( 3 ): 192 – 7 . OpenUrl CrossRef PubMed 40. ↵ Goldman L , Weinberg M , Weisberg M , et al. A computer-derived protocol to aid in the diagnosis of emergency room patients with acute chest pain . N Engl J Med 1982 ; 307 ( 10 ): 588 – 96 . OpenUrl CrossRef PubMed Web of Science 41. ↵ Chen T , He T . xgboost: eXtreme Graident Boosting [Internet] . 2017 ;Available from: https://cran.r-project.org/web/packages/xgboost/vignettes/xgboost.pdf 42. ↵ Shouval R , Labopin M , Bondi O , et al. Prediction of Allogeneic Hematopoietic Stem-Cell Transplantation Mortality 100 Days After Transplantation Using a Machine Learning Algorithm: A European Group for Blood and Marrow Transplantation Acute Leukemia Working Party Retrospective Data Mining Study . J Clin Oncol 2015 ; 33 ( 28 ): 3144 – 51 . OpenUrl Abstract / FREE Full Text 43. ↵ Gagne JJ , Glynn RJ , Avorn J , Levin R , Schneeweiss S . A combined comorbidity score predicted mortality in elderly patients better than existing scores . J Clin Epidemiol 2011 ; 64 ( 7 ): 749 – 59 . OpenUrl CrossRef PubMed 44. ↵ Moreno-Torres JG , Raeder T , Alaiz-Rodríguez R , Chawla NV , Herrera F . A unifying view on dataset shift in classification . Pattern Recognit 2012 ; 45 ( 1 ): 521 – 30 . OpenUrl 45. ↵ Saltz LB , Clarke S , Díaz-Rubio E , et al. Bevacizumab in Combination With Oxaliplatin-Based Chemotherapy As First-Line Therapy in Metastatic Colorectal Cancer: A Randomized Phase III Study . J Clin Oncol 2008 ; 26 ( 12 ): 2013 – 9 . OpenUrl Abstract / FREE Full Text 46. ↵ Zukin M , Barrios CH , Pereira JR , et al. Randomized phase III trial of single-agent pemetrexed versus carboplatin and pemetrexed in patients with advanced non-small-cell lung cancer and Eastern Cooperative Oncology Group performance status of 2 . J Clin Oncol Off J Am Soc Clin Oncol 2013 ; 31 ( 23 ): 2849 – 53 . OpenUrl 47. ↵ Noda K , Nishiwaki Y , Kawahara M , et al. Irinotecan plus Cisplatin Compared with Etoposide plus Cisplatin for Extensive Small-Cell Lung Cancer . N Engl J Med 2002 ; 346 ( 2 ): 85 – 91 . OpenUrl CrossRef PubMed Web of Science 48. ↵ Clark JI , Hofmeister C , Choudhury A , et al. Phase II evaluation of paclitaxel in combination with carboplatin in advanced head and neck carcinoma . Cancer 2001 ; 92 ( 9 ): 2334 – 40 . OpenUrl CrossRef PubMed Web of Science 49. ↵ Wallington M , Saxon EB , Bomb M , et al. 30-day mortality after systemic anticancer treatment for breast and lung cancer in England: a population-based, observational study . Lancet Oncol 2016 ; 17 ( 9 ): 1203 – 16 . OpenUrl Back to top Previous Next Posted October 19, 2017. Download PDF Supplementary Material Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following A machine learning approach to predicting short-term mortality risk in patients starting chemotherapy Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share A machine learning approach to predicting short-term mortality risk in patients starting chemotherapy Aymen A. Elfiky , Maximilian J. Pany , Ravi B. Parikh , Ziad Obermeyer bioRxiv 204081; doi: https://doi.org/10.1101/204081 Share This Article: Copy Citation Tools A machine learning approach to predicting short-term mortality risk in patients starting chemotherapy Aymen A. Elfiky , Maximilian J. Pany , Ravi B. Parikh , Ziad Obermeyer bioRxiv 204081; doi: https://doi.org/10.1101/204081 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Bioinformatics Subject Areas All Articles Animal Behavior and Cognition (7975) Biochemistry (18641) Bioengineering (14772) Bioinformatics (44182) Biophysics (22481) Cancer Biology (19601) Cell Biology (26759) Clinical Trials (138) Developmental Biology (13904) Ecology (20894) Epidemiology (2067) Evolutionary Biology (25332) Genetics (16104) Genomics (23410) Immunology (18618) Microbiology (42270) Molecular Biology (17952) Neuroscience (92969) Paleontology (693) Pathology (2973) Pharmacology and Toxicology (5067) Physiology (8070) Plant Biology (15915) Scientific Communication and Education (2092) Synthetic Biology (4538) Systems Biology (10190) Zoology (2376) window.__CF$cv$params={r:'a3845f294933c479',t:'MTc4ODkzNzgxMQ==',u:'01a08500be2972f2bbd1fe50a82b8c55',ut:'aKsfHPpnwgjSVjWEttWCDAEDk5vi__2rgEFbO8ghWGE-1788937813-1.2.1.1-4Q_9jlrmg_Io0BFEoHFK_ybkK6dU_PVWw.Vgrz_efizFkdpT0PPft2mZZhcR9xfxUaz4_2Zc_0iRPVk7vx.kBbaebv4a15FI63DWBacI3II',i:60};(function(){if(!document.body)return;var s=document.createElement('script');s.src='/cdn-cgi/challenge-platform/scripts/precursor/main.js';document.head.appendChild(s);})();

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. The paper's references may be in our DB but unresolved to ``paper_id`` (resolution happens at ingest when the cited DOI matches a row we already have). Run the cross-source citation reconcile pass to retry.

Source provenance

europepmc
last seen: 2026-05-19T01:45:01.086888+00:00
unpaywall
last seen: 2026-05-24T02:00:01.246996+00:00
License: CC-BY-NC-ND-4.0