Stochastic Approximation EM for Logistic Regression with Missing Values

Wei Jiang, Julie Josse, Marc Lavielle

Abstract

Logistic regression is a common classification method in supervised learning. Surprisingly, there are very few solutions for performing it and selecting variables in the presence of missing values. We propose a stochastic approximation version of the EM algorithm based on Metropolis-Hasting sampling, to perform statistical inference for logistic regression with incomplete data. We propose a complete approach, including the estimation of parameters and their variance, derivation of confidence intervals, a model selection procedure, and a method for prediction on test sets with missing values. The method is computationally efficient, and its good coverage and variable selection properties are demonstrated in a simulation study. We then illustrate the method on a dataset of polytraumatized patients from Paris hospitals to predict the occurrence of hemorrhagic shock, a leading cause of early preventable death in severe trauma cases. The aim is to consolidate the current red flag procedure, a binary alert identifying patients with a high risk of severe hemorrhage. The methodology is implemented in the R package misaem.

Introduction

In real-world data science applications, missing values are the rule rather than the exception. While logistic regression serves as a foundational tool for classification, it is notoriously difficult to implement when input features (covariates) are incomplete. Standard practices often rely on sub-optimal strategies: Complete Case Analysis, which discards any observation with missing data, leading to bias and loss of statistical power; or Multiple Imputation (e.g., MICE), which can be computationally intensive and may introduce bias when covariates are highly correlated.

The primary technical hurdle in applying the Expectation-Maximization (EM) algorithm to logistic regression is that the "Expectation" step (E-step) lacks a closed-form solution. The logistic link function does not integrate analytically with the Gaussian distributions typically used to model covariates, rendering the required integrals mathematically intractable. This paper introduces a comprehensive framework to overcome these challenges using Stochastic Approximation.

Methodology

We propose a joint-modeling framework implemented in the R package misaem. The approach centers on three core technical innovations:

1. The SAEM Algorithm

To bypass the intractable integral of the standard E-step, we utilize the Stochastic Approximation EM (SAEM) algorithm. Instead of calculating the full expectation, SAEM draws samples of the missing data and updates parameter estimates using a weighted average of previous iterations. This "recycling" of information allows the algorithm to converge significantly faster than standard Monte Carlo EM (MCEM) methods.

2. Metropolis-Hastings (MH) Sampling

Because direct sampling from the complex conditional distribution of missing data is impossible, we employ an MH sampler. By using the distribution of observed covariates as a proposal distribution, the algorithm effectively explores the space of potential missing values to facilitate parameter estimation.

3. Variance Estimation and Prediction

To move beyond point estimates, we utilize a Monte Carlo version of Louis’ formula to estimate the Fisher Information Matrix. This allows for the derivation of robust confidence intervals. Furthermore, the framework introduces a principled method for prediction on incomplete test sets. Rather than requiring a separate imputation step, the model marginalizes over the distribution of missing data to calculate the maximum a posteriori probability for the outcome.

Simulation and Performance

The methodology was validated through extensive synthetic simulations ($n=1,000$ to $10,000$) under various missingness mechanisms (MCAR and MAR).

  • Efficiency: SAEM proved to be approximately 60 times faster than MCEM, demonstrating its suitability for large-scale datasets.
  • Accuracy: While popular methods like MICE showed significant bias in the presence of correlated covariates, SAEM remained robust and nearly unbiased.
  • Statistical Rigor: SAEM achieved the nominal 95% confidence interval coverage. In contrast, MICE coverage dropped as low as 86%, suggesting that standard imputation often underestimates uncertainty.

Clinical Application: TraumaBase

We applied the misaem framework to the TraumaBase registry, a dataset comprising over 7,000 severely traumatized patients from Paris hospitals. This dataset is characterized by high levels of missingness (up to 60% for certain variables like hemoglobin levels or blood pressure).

The goal was to predict hemorrhagic shock, a leading cause of preventable death in trauma cases. The SAEM-based model outperformed both the clinical judgment of emergency physicians and established medical scoring systems (such as ABC and TASH). Crucially, the model demonstrated high sensitivity, ensuring that high-risk patients were rarely misclassified as low-risk—a vital requirement in emergency medicine.

An unexpected benefit of the framework was its utility in outlier detection. By calculating the observed log-likelihood, we identified data entry errors that standard cleaning missed, such as a patient record with a BMI calculated from a weight of 200kg and a height of 100cm.

Limitations and Future Work

While the current framework is robust, it relies on the assumption that covariates follow a multivariate normal distribution. Although tests showed resilience to some misspecification (e.g., Student-t distributions), the model may require adaptation for purely categorical missing data. Additionally, the framework assumes data is Missing at Random (MAR). Future research will focus on extending these methods to handle Missing Not at Random (MNAR) scenarios and mixed data types (categorical and continuous).

Summary updated

Abstract

Logistic regression is a common classification method in supervised learning. Surprisingly, there are very few solutions for performing it and selecting variables in the presence of missing values. We propose a stochastic approximation version of the EM algorithm based on Metropolis-Hasting sampling, to perform statistical inference for logistic regression with incomplete data. We propose a complete approach, including the estimation of parameters and their variance, derivation of confidence intervals, a model selection procedure, and a method for prediction on test sets with missing values. The method is computationally efficient, and its good coverage and variable selection properties are demonstrated in a simulation study. We then illustrate the method on a dataset of polytraumatized patients from Paris hospitals to predict the occurrence of hemorrhagic shock, a leading cause of early preventable death in severe trauma cases. The aim is to consolidate the current red flag procedure, a binary alert identifying patients with a high risk of severe hemorrhage. The methodology is implemented in the R package misaem.
BibTeX
@article{jiang2020stochastic,
  author = {Wei Jiang and Julie Josse and Marc Lavielle},
  title = {{Stochastic Approximation EM for Logistic Regression with Missing Values}},
  journal = {Comput. Stat. Data Anal.},
  year = {2020},
  doi = {10.1016/j.csda.2019.106907},
}
Figure