Identifying Treatment Effect Heterogeneity with Bayesian Hierarchical Adjustable Random Partition in Adaptive Enrichment Trials

This paper introduces the Bayesian Hierarchical Adjustable Random Partition (BHARP) model, a self-contained framework that utilizes a finite mixture model and reversible-jump Markov chain Monte Carlo sampling to automatically identify treatment effect heterogeneity and adjust information borrowing in adaptive enrichment trials, thereby outperforming existing methods in accuracy and precision.

Xianglin Zhao, Shirin Golchi, Jean-Philippe Gouin, Kaberi Dasgupta

Published 2026-03-06
📖 5 min read🧠 Deep dive

Imagine you are a doctor trying to figure out which patients respond best to a new exercise program. You have a group of 10 different types of people (subgroups) based on their health history, weight, and relationships. Some might love the program, some might hate it, and some might not care at all.

The big challenge is: How do you know who belongs in which group without guessing?

If you treat everyone as exactly the same, you miss the nuances. If you treat everyone as completely different, you don't have enough data to make good guesses for the smaller groups. This is the problem of Treatment Effect Heterogeneity (TEH).

This paper introduces a new tool called BHARP (Bayesian Hierarchical Adjustable Random Partition) to solve this puzzle. Here is how it works, explained with simple analogies.

1. The Old Way: The "One-Size-Fits-All" vs. "Guess the Group" Problem

  • The "All Together" Approach: Imagine putting all 10 subgroups into one big pot and stirring them together. You get an average result. This is efficient, but if Group A loves the exercise and Group B hates it, the average tells you nothing useful. It's like saying "the average temperature in the room is 70°F," when one person is freezing and another is sweating.
  • The "Pick One Group" Approach: Some older methods try to sort the patients into clusters (e.g., "Group 1" and "Group 2") and then pick the single best way to sort them. The problem? There are thousands of ways to sort 10 people. If you pick just one way, you ignore the uncertainty. It's like a detective picking one suspect and ignoring all other possibilities, even if the evidence is shaky.

2. The BHARP Solution: The "Smart, Shapeshifting Organizer"

The BHARP model is like a super-intelligent, shapeshifting organizer who doesn't just pick one way to sort the patients. Instead, it tries many different ways to sort them simultaneously and weighs the results.

Here is the magic trick:

  • The "Mixture" Concept: Imagine you have a bag of marbles of different colors (patients). You don't know how many distinct colors there are. BHARP asks: "What if there is 1 color? What if there are 2? What if there are 5?"
  • The "Random Partition": Instead of forcing the marbles into a fixed number of boxes, BHARP lets the marbles float into boxes dynamically. It uses a special computer algorithm (called rjMCMC) that acts like a dance floor.
    • Sometimes, two groups of dancers merge into one big circle (because they are similar).
    • Sometimes, one big circle splits into two smaller circles (because they are different).
    • The algorithm dances back and forth, trying different formations, and keeps track of which formations make the most sense based on the data.

3. How It Handles Uncertainty (The "Voting System")

In the old methods, the computer would say, "I think there are 3 groups," and stop there.

BHARP says, "I think there's a 10% chance there are 2 groups, a 60% chance there are 3 groups, and a 30% chance there are 4 groups."

It then averages all these possibilities.

  • Analogy: Imagine you are trying to guess the winner of a race.
    • Old Method: You pick one expert, ask them who will win, and bet on that.
    • BHARP: You ask 1,000 experts. Some say Runner A, some say Runner B. You don't just pick one; you look at the pattern of their votes. If 600 experts say Runner A is in a "fast group" and 400 say Runner B is in a "slow group," you get a much clearer, more reliable picture of the race dynamics.

4. Why This Matters for Medicine (The "Adaptive Enrichment" Trial)

The paper tests this in a "Adaptive Enrichment Trial." Imagine a clinical trial that is a live, changing experiment.

  • The Scenario: You start with 10 subgroups. As the trial runs, you check the data every few months.
  • The BHARP Advantage: Because BHARP is so good at figuring out who is similar to whom, it can tell the trial organizers:
    • "Stop giving the drug to Group 7; it's not working for them." (Saving money and protecting patients).
    • "Focus all your energy on Group 3; they are responding amazingly!" (Finding the cure faster).
    • "Group 4 and Group 5 are actually the same; let's treat them as one big group to get better data."

5. The "Speed" Factor

Usually, doing this kind of complex math takes forever. The authors built a custom computer engine (written in C++) that makes BHARP incredibly fast.

  • Analogy: Other methods are like a librarian trying to sort books by hand, checking every single shelf one by one. BHARP is like a robot that can scan the whole library, sort the books, and re-sort them instantly to find the perfect arrangement, all while you wait for your coffee.

Summary: The Big Takeaway

BHARP is a smart, flexible tool that helps doctors figure out which treatments work for which specific types of people.

Instead of forcing patients into rigid boxes or guessing the best grouping, BHARP explores all possible groupings at once. It admits, "We aren't 100% sure how many groups there are, but here is the most likely pattern." This leads to:

  1. More accurate results (less guessing).
  2. Faster trials (stopping bad treatments early).
  3. Better personalized medicine (finding the right treatment for the right person).

It turns a messy, confusing pile of patient data into a clear, actionable map for doctors.