Skip to main content
QUICK REVIEW

[Paper Review] missForestPredict -- Missing data imputation for prediction settings

Elena Albu, Shan Gao|arXiv (Cornell University)|Jul 2, 2024
Machine Learning in HealthcareComputer Science3 citations
TL;DR

The paper introduces missForestPredict, an R package that extends the missForest algorithm to enable iterative, random forest-based imputation of missing data in prediction settings, supporting both new observations and customizable imputation workflows. It delivers competitive prediction performance with low computational cost, outperforming many alternatives in complex data scenarios and maintaining robustness across diverse missingness patterns.

ABSTRACT

Prediction models are used to predict an outcome based on input variables. Missing data in input variables often occurs at model development and at prediction time. The missForestPredict R package proposes an adaptation of the missForest imputation algorithm that is fast, user-friendly and tailored for prediction settings. The algorithm iteratively imputes variables using random forests until a convergence criterion (unified for continuous and categorical variables and based on the out-of-bag error) is met. The imputation models are saved for each variable and iteration and can be applied later to new observations at prediction time. The missForestPredict package offers extended error monitoring, control over variables used in the imputation and custom initialization. This allows users to tailor the imputation to their specific needs. The missForestPredict algorithm is compared to mean/mode imputation, linear regression imputation, mice, k-nearest neighbours, bagging, miceRanger and IterativeImputer on eight simulated datasets with simulated missingness (48 scenarios) and eight large public datasets using different prediction models. missForestPredict provides competitive results in prediction settings within short computation times.

Motivation & Objective

  • To address the lack of support for imputing new observations with missing data at prediction time in existing imputation methods.
  • To develop a user-friendly, efficient, and flexible imputation framework tailored for real-world prediction applications where missing data may occur at inference time.
  • To enable the reuse of trained imputation models across multiple prediction tasks without retraining.
  • To compare missForestPredict’s performance against a range of established imputation methods in both simulated and real-world datasets.
  • To provide extended monitoring, variable control, and initialization options to enhance reproducibility and adaptability in applied settings.

Proposed method

  • The algorithm initializes missing values using mean/mode or user-defined values, then iteratively imputes each variable using random forest models trained on complete cases of other variables.
  • At each iteration, the imputation model for each variable is updated using out-of-bag error as a convergence criterion, unified across continuous and categorical variables.
  • Imputation models and initial values are saved per variable and iteration, enabling consistent application to new observations at prediction time.
  • The method supports user-defined predictor matrices, custom initialization, and extended error monitoring to track imputation quality across iterations.
  • The algorithm is implemented in the missForestPredict R package, with support for both continuous and categorical variables and integration into prediction pipelines.
  • The approach allows for iterative refinement of imputations, leveraging the predictive power of random forests while maintaining computational efficiency.
Figure 1: Imputed variable and predictor matrix
Figure 1: Imputed variable and predictor matrix

Experimental results

Research questions

  • RQ1Does iterative random forest imputation (as implemented in missForestPredict) outperform single-step imputation methods like mean imputation or kNN in prediction settings with missing data at inference time?
  • RQ2How does missForestPredict perform relative to other state-of-the-art imputation methods (e.g., mice, IterativeImputer, miceRanger) when applied to new observations with missing values?
  • RQ3To what extent does variable-specific imputation error correlate with downstream predictive performance in models trained on imputed data?
  • RQ4Does the choice of initialization scheme (e.g., mean vs. random) significantly affect imputation or prediction accuracy in missForestPredict?
  • RQ5Is multiple imputation necessary in prediction settings, or does single imputation with iterative random forests suffice?

Key findings

  • missForestPredict achieved competitive prediction performance across eight simulated datasets and eight real-world datasets, outperforming or matching most baseline methods, especially in complex data structures.
  • Tree-based imputation methods, including missForestPredict, performed better than linear models in high-imputability scenarios (e.g., strong variable associations), while linear methods underperformed in low-imputability settings.
  • In low-correlation or complex data settings, methods like kNN, IterativeImputer, and mice showed signs of overfitting, leading to worse predictive performance than mean imputation.
  • The missForestPredict algorithm demonstrated low computational cost and memory usage, making it suitable for large-scale and real-time prediction applications.
  • Custom initialization and variable control features in missForestPredict allowed users to tailor imputation to domain-specific needs, improving robustness and interpretability.
  • The study found no strong evidence that multiple imputation improves predictive performance over single imputation in this context, suggesting single imputation with iterative refinement may be sufficient.
Figure 2: NMSE errors (deviations from true values) on test sets for simulated datasets simulated missingness: low correlation (0.1) and low AUROC (0.75). To facilitate visualisation, only four out of the twelve noise variables are included in the figure.
Figure 2: NMSE errors (deviations from true values) on test sets for simulated datasets simulated missingness: low correlation (0.1) and low AUROC (0.75). To facilitate visualisation, only four out of the twelve noise variables are included in the figure.

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.