Skip to main content
QUICK REVIEW

[Paper Review] Rethinking clinical prediction: Why machine learning must consider year of care and feature aggregation

Bret Nestor, Matthew B. A. McDermott|arXiv (Cornell University)|Nov 30, 2018
Machine Learning in HealthcareComputer Science15 references30 citations
TL;DR

This paper demonstrates that machine learning models trained on de-identified EHR data with randomized calendar dates—such as in MIMIC-III—suffer significant performance degradation over time due to unaccounted-for clinical practice changes. By introducing year-of-care and clinically meaningful feature aggregation, models maintain stable performance (e.g., 0.3 AUC drop avoided in mortality prediction), outperforming standard raw-itemid representations that degrade when tested on future data.

ABSTRACT

Machine learning for healthcare often trains models on de-identified datasets with randomly-shifted calendar dates, ignoring the fact that data were generated under hospital operation practices that change over time. These changing practices induce definitive changes in observed data which confound evaluations which do not account for dates and limit the generalisability of date-agnostic models. In this work, we establish the magnitude of this problem on MIMIC, a public hospital dataset, and showcase a simple solution. We augment MIMIC with the year in which care was provided and show that a model trained using standard feature representations will significantly degrade in quality over time. We find a deterioration of 0.3 AUC when evaluating mortality prediction on data from 10 years later. We find a similar deterioration of 0.15 AUC for length-of-stay. In contrast, we demonstrate that clinically-oriented aggregates of raw features significantly mitigate future deterioration. Our suggested aggregated representations, when retrained yearly, have prediction quality comparable to year-agnostic models.

Motivation & Objective

  • To investigate whether random date shifting in de-identified EHR datasets like MIMIC-III undermines the validity of model evaluation and generalization.
  • To assess the impact of evolving clinical practices—such as EHR system changes—on machine learning model performance over time.
  • To evaluate whether clinically informed feature aggregation can mitigate performance degradation in predictive models trained on date-randomized data.
  • To compare the robustness of raw itemid-based features versus aggregated, clinically meaningful features across different training regimes.

Proposed method

  • Augmented the MIMIC-III dataset with the actual year of care, enabling temporal evaluation of model performance.
  • Used a random forest classifier with simple imputation (forward-fill, missing indicators, time since last observation) for handling missing data.
  • Compared two data representations: raw itemid features and clinically aggregated features based on expert-defined groupings (e.g., grouped lab values).
  • Evaluated models under three training regimes: one-time training on early years, continuous training on all prior years, and short-term training on the prior year only.
  • Applied 5-fold cross-validation with random search for hyperparameter tuning to maximize AUROC.
  • Used Wilcoxon signed-rank tests to assess statistical significance of performance differences between representations.

Experimental results

Research questions

  • RQ1Does random date shifting in MIMIC-III data lead to overestimation of model performance when evaluated on future data?
  • RQ2How does performance degrade over time when models are trained on date-randomized data without accounting for clinical practice evolution?
  • RQ3To what extent does clinically driven feature aggregation reduce performance degradation in mortality and length-of-stay prediction tasks?
  • RQ4Can year-specific retraining with aggregated features achieve performance comparable to year-agnostic models?
  • RQ5Does model performance saturate quickly, suggesting that mortality prediction may be a trivial task under current data representations?

Key findings

  • Models trained on raw itemid features showed a 0.3 AUC drop in mortality prediction when tested on data from 10 years after training (e.g., 2001–2002 data tested on 2012 data).
  • Length-of-stay prediction models trained on raw itemid features degraded by 0.15 AUC over the same time period, indicating significant performance drift.
  • Clinically aggregated feature representations reduced performance degradation and maintained AUROC within 0.03 of baseline performance across all evaluation years.
  • A random forest model trained on only 10% of 2001–2002 data (220 patients) achieved an AUROC of 0.692 ± 0.032 for mortality prediction 10 years later, suggesting rapid performance saturation.
  • The Glasgow coma scale alone achieved AUROC > 0.77 on 24-hour data, indicating that a single feature can dominate prediction performance.
  • Only the clinically aggregated representation trained on all prior data maintained stable performance through the 2008 EHR system transition (CareVue to Metavision), while raw itemid models failed to recover.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.