Abstract
The estimation of optimal treatment regimes is of considerable interest to precision medicine. In this work, we propose a causal $k$-nearest neighbor method to estimate the optimal treatment regime. The method roots in the framework of causal inference, and estimates the causal treatment effects within the nearest neighborhood. Although the method is simple, it possesses nice theoretical properties. We show that the causal $k$-nearest neighbor regime is universally consistent. That is, the causal $k$-nearest neighbor regime will eventually learn the optimal treatment regime as the sample size increases. We also establish its convergence rate. However, the causal $k$-nearest neighbor regime may suffer from the curse of dimensionality, i.e. performance deteriorates as dimensionality increases. To alleviate this problem, we develop an adaptive causal $k$-nearest neighbor method to perform metric selection and variable selection simultaneously. The performance of the proposed methods is illustrated in simulation studies and in an analysis of a chronic depression clinical trial.
Introduction
Precision medicine is moving away from "one-size-fits-all" healthcare toward tailored treatment strategies. The core challenge is identifying the Optimal Treatment Regime (OTR)—a decision rule that assigns treatments to patients based on their specific characteristics (covariates) to maximize clinical outcomes.
Existing methods often fall into two camps: regression-based (modeling outcomes directly) or classification-based (treating treatment selection as a weighted classification problem). However, many of these methods either rely on rigid model assumptions, such as linearity, or struggle with high-dimensional data where many patient features are irrelevant. This paper introduces a non-parametric approach using a familiar tool: $k$-nearest neighbors (k-NN). By grounding k-NN in a causal inference framework, the authors provide a simple yet theoretically powerful method for personalized treatment selection.
Methodology
Causal $k$-Nearest Neighbor (CNN)
The basic Causal $k$-Nearest Neighbor (CNN) method estimates optimal treatment regimes by averaging causal effects within local neighborhoods. For a given patient, the algorithm identifies the $k$ most similar individuals in the training set. It then estimates the potential outcome for each treatment arm by averaging the outcomes of neighbors assigned to that treatment. To handle potential bias in treatment assignment—particularly in observational data—the averages are weighted using Inverse Probability Weighting (IPW) based on propensity scores.
Adaptive Causal $k$-Nearest Neighbor (ACNN)
Standard k-NN suffers from the "curse of dimensionality," where performance drops as irrelevant features are added. To address this, the authors developed the Adaptive Causal $k$-Nearest Neighbor (ACNN) method. ACNN introduces a weighted distance metric that calculates a test statistic ($T_j$) for each covariate to determine its importance in treatment selection.
As shown in the figure above, features that do not significantly contribute to the treatment effect are effectively filtered out. By assigning weights (represented by $\sigma_j^2$) based on the relative importance of each covariate, ACNN performs implicit variable selection, allowing the model to focus on prescriptive covariates—those that interact with the treatment—rather than just predictive ones that affect outcomes regardless of treatment.
Theoretical Properties
A key contribution of this work is the proof of universal consistency. The authors demonstrate that as the sample size grows to infinity, the CNN algorithm is guaranteed to learn the true optimal treatment regime, regardless of the underlying data distribution.
Furthermore, they establish specific convergence rates for the value function. For 1 or 2 dimensions, the rate is as high as $n^{-1/2}$. For higher dimensions ($p \ge 3$), the rate is $n^{-2/(p+2)}$. These theoretical guarantees provide a solid foundation for the method's reliability in large-scale clinical applications.
Empirical Evaluation
Simulation Studies
The authors evaluated their methods using synthetic scenarios involving 2-arm and 3-arm treatment setups across low-dimensional ($p=5$) and moderate-dimensional ($p=25$) spaces. These simulations included linear, nonlinear, and highly complex decision boundaries.
- Nonlinearity: In cases with nonlinear decision boundaries, ACNN significantly outperformed $\ell_1$-penalized least squares and rivaled complex methods like Q-learning with Random Forests.
- High Dimensions: In 25-dimensional simulations, standard CNN failed due to noise, but ACNN maintained high performance by successfully filtering out irrelevant covariates.
Chronic Depression Clinical Trial
The method was applied to a real-world dataset of 647 patients comparing three treatments for chronic depression: Nefazodone, Cognitive Behavioral-Analysis System of Psychotherapy (CBASP), and a combination of both (COMB). Using 50 pre-treatment covariates, ACNN performed comparably to state-of-the-art methods. It confirmed the clinical finding that combination therapy is generally most efficacious while identifying specific patient subsets where single therapies might suffice.
Conclusion
The Causal $k$-Nearest Neighbor framework offers a robust, non-parametric alternative for estimating optimal treatment regimes. While the current adaptive metric selection evaluates features individually, future work could extend this to capture complex, high-order interactions. Additionally, extending the framework to multi-stage "Dynamic Treatment Regimes" remains a promising avenue for research in longitudinal clinical settings.
Summary updated