Table of Contents
Fetching ...

Controlling for Unobserved Confounding with Large Language Model Classification of Patient Smoking Status

Samuel Lee, Zach Wood-Doughty

TL;DR

A large language model trained on clinical notes is used to predict patients' smoking status, which would otherwise be an unobserved confounder, and a measurement error correction is applied on the categorical predicted smoking status to estimate the causal effect of transthoracic echocardiography on mortality in the MIMIC dataset.

Abstract

Causal understanding is a fundamental goal of evidence-based medicine. When randomization is impossible, causal inference methods allow the estimation of treatment effects from retrospective analysis of observational data. However, such analyses rely on a number of assumptions, often including that of no unobserved confounding. In many practical settings, this assumption is violated when important variables are not explicitly measured in the clinical record. Prior work has proposed to address unobserved confounding with machine learning by imputing unobserved variables and then correcting for the classifier's mismeasurement. When such a classifier can be trained and the necessary assumptions are met, this method can recover an unbiased estimate of a causal effect. However, such work has been limited to synthetic data, simple classifiers, and binary variables. This paper extends this methodology by using a large language model trained on clinical notes to predict patients' smoking status, which would otherwise be an unobserved confounder. We then apply a measurement error correction on the categorical predicted smoking status to estimate the causal effect of transthoracic echocardiography on mortality in the MIMIC dataset.

Controlling for Unobserved Confounding with Large Language Model Classification of Patient Smoking Status

TL;DR

A large language model trained on clinical notes is used to predict patients' smoking status, which would otherwise be an unobserved confounder, and a measurement error correction is applied on the categorical predicted smoking status to estimate the causal effect of transthoracic echocardiography on mortality in the MIMIC dataset.

Abstract

Causal understanding is a fundamental goal of evidence-based medicine. When randomization is impossible, causal inference methods allow the estimation of treatment effects from retrospective analysis of observational data. However, such analyses rely on a number of assumptions, often including that of no unobserved confounding. In many practical settings, this assumption is violated when important variables are not explicitly measured in the clinical record. Prior work has proposed to address unobserved confounding with machine learning by imputing unobserved variables and then correcting for the classifier's mismeasurement. When such a classifier can be trained and the necessary assumptions are met, this method can recover an unbiased estimate of a causal effect. However, such work has been limited to synthetic data, simple classifiers, and binary variables. This paper extends this methodology by using a large language model trained on clinical notes to predict patients' smoking status, which would otherwise be an unobserved confounder. We then apply a measurement error correction on the categorical predicted smoking status to estimate the causal effect of transthoracic echocardiography on mortality in the MIMIC dataset.

Paper Structure

This paper contains 11 sections, 9 equations, 2 figures, 4 tables.

Figures (2)

  • Figure 1: DAG with treatment $X$, outcome $Y$, and observed confounders $C$. $U^*$ is the observed but noisy proxy for the unobserved confounder $U$.
  • Figure 2: Overview of training and estimation methodology