← Latest papers
🤖 machine learning

Teaching LLMs to Recommend and Defer in Underrepresented Epilepsy Care

This paper introduces MANANA, a non-parametric prompt-learning framework that enhances LLM-based anti-seizure medication recommendations in Ugandan pediatric epilepsy care by learning local prescribing patterns from unstructured notes and utilizing Bayesian prompt averaging to generate uncertainty-aware deferral signals, thereby achieving higher accuracy and enabling selective prediction for specialist review.

Original authors: Shreyas Rajesh, Kartik Sharma, Tonmoy Monsoor, Mehmet Yigit Turali, Richard Idro, Juliana Kayaga, Robert Sebunya, Tracy Tushabe Namata, Jessica Nichole Pasqua, Vwani Roychowdhury, Rajarshi Mazumder

Published 2026-07-01
📖 5 min read🧠 Deep dive

Original authors: Shreyas Rajesh, Kartik Sharma, Tonmoy Monsoor, Mehmet Yigit Turali, Richard Idro, Juliana Kayaga, Robert Sebunya, Tracy Tushabe Namata, Jessica Nichole Pasqua, Vwani Roychowdhury, Rajarshi Mazumder

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a general doctor working in a busy clinic in Uganda. You have a patient with epilepsy, and you need to decide which medication to prescribe. The problem is that the "expert" advice you usually rely on (from big medical textbooks or AI trained in wealthy countries) often doesn't fit your reality. Maybe the expensive drug isn't available, or the local way of treating patients is different. You need an AI assistant that understands your specific neighborhood, not just the textbook.

This paper introduces MANANA, a new way to teach Large Language Models (LLMs) to be that helpful local assistant, specifically for epilepsy care in resource-limited settings.

Here is how it works, broken down into simple concepts:

1. The Problem: The "Tourist" Doctor

Standard AI models are like tourists. They have read all the medical books (trained on data from rich countries like the US or UK), but they don't know the local rules.

  • If you ask a tourist AI for a prescription, it might suggest a drug that is too expensive or simply unavailable in Uganda.
  • It makes mistakes because it's applying "Western rules" to a "Ugandan reality."
  • The paper found that while these AIs could guess some things correctly, their errors were systematic—they were confidently wrong because they didn't know the local context.

2. The Solution: MANANA (The "Apprentice" System)

Instead of trying to retrain the AI's brain (which is heavy, expensive, and hard to audit), the authors created MANANA. Think of MANANA as a smart apprentice who learns by keeping a "field journal" of mistakes and lessons.

MANANA works like a three-person team:

  • The Predictor (The Apprentice): Looks at the patient's notes and suggests three possible medication plans.
  • The Inspector (The Critic): Checks the Apprentice's suggestions against what the real doctor actually prescribed. If they don't match, the Inspector writes a note explaining why it was wrong (e.g., "Don't suggest Drug X here; it's out of stock").
  • The Architect (The Teacher): Looks at all the Inspector's notes. If the same mistake happens over and over with different patients, the Architect writes a permanent rule into the "Field Journal" (the memory) to prevent it from happening again.

The Magic: The AI doesn't change its internal brain code. Instead, it just updates its "Field Journal." This makes it easy to audit (doctors can read the journal to see what the AI learned) and easy to adapt to new clinics.

3. Two Ways to Learn

The paper tested two versions of this apprentice:

  • MANANA-Single: The team writes one big list of rules (e.g., "Always check Drug A first").
  • MANANA-Multi: The team creates a group of "specialist agents." One agent focuses on drug availability, another on side effects, another on patient history. They work together to solve the puzzle.

4. Knowing When to Say "I Don't Know" (The Safety Valve)

In medicine, it's dangerous for an AI to guess when it's unsure. The paper introduces a feature called Bayesian Prompt Averaging (BPA).

Think of this as the AI checking its own confidence.

  • As the AI learns, it goes through different "stages" of its Field Journal.
  • BPA looks at all these stages and asks: "How sure are we that this answer is right?"
  • High Confidence: If the AI is very sure (e.g., 99% sure), it gives the prescription to the doctor to use.
  • Low Confidence: If the AI is shaky, it raises a red flag and says, "I'm not sure about this one; please send this patient to a specialist."

This is crucial because in places with few specialists, you don't want to waste their time on easy cases. You want them to only see the hard, uncertain cases.

5. The Results

The team tested this on real patient records from two different hospitals in Uganda.

  • Better than the Basics: MANANA was much better at guessing the right medication than standard AI prompts or old-school computer models.
  • The "Multi" Team Won: The version with the group of specialist agents (MANANA-Multi) performed the best.
  • The Safety Net Worked: When the system was allowed to "defer" (pass on) the cases it wasn't sure about, its accuracy on the cases it did handle skyrocketed.
    • It could handle the most confident 50% of cases with 95% accuracy.
    • It could handle the most confident 25% of cases with 99% accuracy.

Summary Analogy

Imagine you are trying to navigate a city you've never visited.

  • Standard AI is like a GPS trained only on New York City. It will tell you to "turn left at the subway," but in your city, there is no subway.
  • MANANA is like a local guide who starts with a blank notebook. Every time the GPS gives a wrong turn, the guide writes down, "No subway here, turn right instead." After a few days, the guide has a perfect, custom map for your city.
  • BPA (The Confidence Check) is the guide saying, "I know the route to the market perfectly, but I'm not sure about the route to the mountain. Let's ask a local expert for the mountain part."

The paper concludes that this approach allows AI to learn from limited local data without needing expensive retraining, making it a practical tool for helping doctors in places where specialist care is scarce.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →