Neural Bandits for Data Mining: Searching for Dangerous Polypharmacy

Alexandre Larouche, Audrey Durand, Richard Khoury, Caroline SiroisarXiv 2022 · DOI

Introduction

Polypharmacy—the simultaneous use of five or more drugs—is a cornerstone of modern medicine, particularly for managing chronic conditions in aging populations. However, this practice introduces the risk of "Potentially Inappropriate Polypharmacies" (PIPs), where drug interactions lead to adverse health outcomes, including hospitalization and death. While clinical knowledge of dangerous drug pairs is well-established, identifying harmful combinations of three, four, or more drugs remains a significant challenge.

The search for these interactions is a classic "needle in a haystack" problem. With a library of 500 common drugs, the number of possible combinations is mathematically explosive. Furthermore, calculating the Relative Risk (RR) for every possible combination across millions of patient records is computationally prohibitive.

Distribution of Relative Risk (RR) showing the threshold between safe and harmful drug combinations.

As shown in the figure above, the goal of pharmacovigilance is to identify combinations that fall into the "Harmful" region (RR > 1). Most drug combinations are "Safe" (RR ≤ 1), making the discovery of PIPs a rare-event detection task.

Methodology: The OptimNeuralTS Framework

To navigate this vast search space, researchers have proposed OptimNeuralTS, a hybrid AI approach that frames data mining as a Contextual Bandit problem. In this setup, an agent must intelligently choose which "action" (a specific drug combination) to investigate to maximize its "reward" (finding a high Relative Risk).

Defining the Reward: Relative Risk

The core metric used to evaluate drug combinations is the Relative Risk (RR). This is calculated using a standard contingency table that compares the frequency of health outcomes among patients exposed to a drug combination versus those not exposed.

Contingency table used to calculate the Relative Risk (RR) of a health outcome given exposure to a specific drug combination.

System Architecture

OptimNeuralTS integrates three distinct components to solve the mining problem:

  1. Neural Thompson Sampling (NeuralTS): Traditional machine learning models often struggle with uncertainty. NeuralTS uses a neural network to predict the RR of a drug combination while estimating the distribution of that prediction. This allows the agent to balance exploitation (investigating combinations known to be risky) with exploration (checking unknown regions of the drug space).
  2. Differential Evolution (DE): Standard bandit algorithms assume a fixed, manageable list of actions. In polypharmacy, the list is effectively infinite. OptimNeuralTS uses DE—an evolutionary algorithm—to "evolve" a subset of candidate drug combinations at each step, which are then evaluated by the bandit.
  3. Ensemble Prediction: Rather than relying on a single final model, the system uses an ensemble of all models generated during the search. This ensures that "specialized" knowledge gained during early exploration isn't lost as the model converges on harder-to-distinguish cases.

Experimental Setup and Datasets

Because real-world medical claims data lacks a comprehensive "ground truth" for all possible PIPs, the researchers developed a Polypharmacy Simulator. This simulator included 500 distinct drugs and 100,000 unique combinations.

The system was tested under two primary scenarios:

  • Neutral Scenario: A baseline where most RRs are distributed around 1.0.
  • Protective Scenario: A more challenging environment where most RRs are near 0, making the rare PIPs even harder to distinguish from the background noise.

Key Results

The performance of OptimNeuralTS highlights the power of active data mining:

  • High Precision: The model achieved an average precision of 99%. In medical contexts, high precision is vital to ensure that healthcare experts do not waste resources investigating false positives.
  • Effective Recall: The system successfully detected up to 72% of all PIPs within 30,000 time steps. This represents a massive reduction in search effort compared to exhaustive enumeration.
  • Generalization Capabilities: Most notably, the ensemble model identified PIPs that were not present in its training data. In the "Protective" scenario, 39% of detected PIPs were entirely new to the model, suggesting it learned the underlying biological or chemical "logic" of interactions.

Discussion and Future Work

The success of OptimNeuralTS demonstrates that Active Mining is superior to passive learning for highly unbalanced datasets. By allowing the model to choose its training data, it effectively "oversamples" the dangerous cases it needs to understand.

However, limitations remain. The current simulator focuses solely on the presence of drugs. In clinical reality, factors such as patient age, sex, and pre-existing medical conditions (comorbidities) significantly influence risk. Future iterations of the model will incorporate these contextual factors and undergo validation using actual medico-administrative databases to uncover previously unknown drug risks in the wild.

Summary updated

BibTeX
@misc{larouche2022neural,
  author = {Alexandre Larouche and Audrey Durand and Richard Khoury and Caroline Sirois},
  title = {{Neural Bandits for Data Mining: Searching for Dangerous Polypharmacy}},
  year = {2022},
  eprint = {2212.05190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.05190},
}
Figure