The impact of imputation quality on machine learning classifiers for datasets with missing values

Tolou Shadbahr, Michael Roberts, Jan Stanczuk, Julian Gilbey, Philip Teare, Sören Dittmer, Matthew Thorpe, Ramón Viñas, Evis Sala, Píetro Lió, Mishal Patel, Jacobus Preller, Ian Selby, Anna Breger, Jonathan Weir‐McCall, Effrossyni Gkrania‐Klotsas, Anna Korhonen, Emily Jefferson, Georg Langs, Guang Yang, Helmut Prosch, Judith Babar, Lorena Escudero Sánchez, Marcel Wassin, Markus Holzer, Nicholas Walton, James H.f. Rudd, Tuomas Mirtti, Antti Rannikko, John A. D. Aston, Jing Tang, Carola‐Bibiane Schönlieb

Abstract

It is imperative to consider the quality of the imputation when performing downstream classification as the effects on the classifier can be considerable.

Introduction

In real-world datasets—particularly in healthcare—missing values are ubiquitous. The standard analytical workflow typically involves a two-stage process: first, "imputing" missing values using statistical or machine learning methods, and second, training a classifier on the completed data. While researchers often focus exclusively on final classification metrics like the Area Under the Receiver Operating Characteristic curve (AUC-ROC), this "black box" approach can be deceptive.

This paper demonstrates that high-performing classifiers can often "mask" poor data imputation. If an imputation method fills gaps with values that deviate from the original data distribution, the classifier may still achieve high accuracy by treating the poor imputation as noise or a form of data augmentation. However, this compromises model interpretability, leading to "spurious importance" assigned to features that do not reflect real-world drivers of the outcome.

Methodology

The researchers conducted a systematic study using multi-factor Analysis of Variance (ANOVA) to quantify the drivers of performance, including missingness rate, imputation method, and classifier choice.

Distributional Evaluation and the Sliced Wasserstein Distance

Traditional metrics like Root Mean Square Error (RMSE) or $R^2$ often favor imputations that cluster near the mean, failing to recreate the variance and correlation structure of the original data. To address this, the authors propose a new metric based on the sliced Wasserstein distance.

Conceptual illustration of distributional comparison between original and imputed data.

Because high-dimensional distributions are difficult to compare directly, the "slicing" technique projects the data onto multiple random 1D subspaces. High imputation quality is indicated when the imputed data matches the original data's distribution across these various projections.

Key Results

The study compared five imputation methods—Mean, MICE (Multivariate Imputation by Chained Equations), MissForest, GAIN, and MIWAE—across several classifiers and datasets, including MIMIC-III and NHSX COVID-19.

Imputation Performance and Metric Correlation

Statistical methods like MICE and MissForest consistently outperformed deep learning-based approaches (e.g., GAIN) in reconstructing the underlying data distribution. Crucially, the proposed sliced Wasserstein scores showed a significantly stronger correlation with downstream model performance than traditional metrics like RMSE.

Frequency distribution of Wasserstein distances comparing baseline and imputed datasets.

The "AUC Trap" and Interpretability

The ANOVA revealed that the percentage of missing data in the test set is the primary driver of performance decline. Furthermore, using Shapley values (SHAP), the authors demonstrated that models trained on poorly imputed data (such as Mean imputation) assigned markedly different importance to features compared to models trained on "clean" data. This suggests that while AUC might remain high, the model's internal logic becomes distorted, rendering it unreliable for clinical decision-making.

Conclusion

Imputation quality is a critical, yet often overlooked, component of reliable machine learning. While classifiers can be robust to poor imputation in terms of predictive accuracy, the resulting loss of interpretability poses significant risks in sensitive domains like healthcare. Future work should focus on imputation methods that respect logical constraints (e.g., categorical encoding) and scale efficiently to high-dimensional genomic data.

Summary updated

BibTeX
@inproceedings{shadbahr2023impact,
  author = {Tolou Shadbahr and Michael Roberts and Jan Stanczuk and Julian Gilbey and Philip Teare and Sören Dittmer and Matthew Thorpe and Ramón Viñas and Evis Sala and Píetro Lió and Mishal Patel and Jacobus Preller and Ian Selby and Anna Breger and Jonathan Weir‐McCall and Effrossyni Gkrania‐Klotsas and Anna Korhonen and Emily Jefferson and Georg Langs and Guang Yang and Helmut Prosch and Judith Babar and Lorena Escudero Sánchez and Marcel Wassin and Markus Holzer and Nicholas Walton and Píetro Lió and James H.F. Rudd and Tuomas Mirtti and Antti Rannikko and John A. D. Aston and Jing Tang and Carola‐Bibiane Schönlieb},
  title = {{The impact of imputation quality on machine learning classifiers for datasets with missing values}},
  booktitle = {Communications},
  year = {2023},
  doi = {10.1038/s43856-023-00356-z},
}
Figure