← All AI Engineer talks

AI Engineer World's Fair 2026

Shipping AI to a Million Patients Without an A/B Test

About this talk

Ufonia research engineer Jared Joselowitz explains why conventional A/B testing, incremental rollout, and rollback cannot adequately protect patients interacting with Dora, a regulated clinical voice agent. He presents MATRIX, a hazard-driven simulation framework in which the LLM-based PathBot generates realistic patient conversations, and describes validating simulated-patient realism and optimizing prompts with rewards weighted toward detecting clinical red flags before deployment.

Chapters

  1. 0:00Why clinical AI cannot rely on A/B testing or rollback
  2. 1:34Dora's clinical workflow, deployment scale, and cataract-call demonstration
  3. 4:16Clinical hazards and the autonomous-driving simulation analogy
  4. 6:10MATRIX and PathBot simulate realistic patient conversations
  5. 12:41Prompt optimization and asymmetric rewards for clinical red flags
  6. 18:38Closing: simulate and optimize before patient exposure

Talk transcript

  1. 0:00

    [outro music] Uh, hello everyone. It's really nice to see you all. Um, my name is Jared, and I'm gonna share some of the work that we do on shipping healthcare AI safely, basically.

  2. 0:23

    Um, so just a little bit about me. Um, I come from South Africa, where I actually studied electrical engineering, and before making the very unique decision to transition to AI a few years ago.

  3. 0:34

    Um, I now work as a research engineer for Ufonia, which is basically a, a healthcare company based in the UK. And, um, the work we do, I work within the science team, is we build the safety and evaluation stack behind Dora, which is a clinical conversational agent.

  4. 0:49

    And my job, and our job within the science team, is proving that the product is safe be-before a patient ever actually hears it.

  5. 0:58

    So shipping to patients takes away the normal safety nets you would normally ship with. Um, three of them could be that you can't actually A/B test on patients, of course.

  6. 1:06

    Randomizing patients into a worse variant is unethical and often illegal. Um, you can't undo a call. Once Dora says it, it's been said, and there is no rollback. And very importantly, the model card won't save you.

  7. 1:20

    Um, you can't claim like some model vendors said that they have ninety-two percent on some benchmark. Um, it's not a defense at a post-incident review. So everything that we do at Ufonia comes from living within these three constraints.

  8. 1:34

    So what is Dora? Um, a little bit about Dora. Dora is a, a voice AI agent that phones patients and has real clinical conversations like post-op follow-ups or pre-op checks.

  9. 1:43

    Um, these are calls that a clinician would usually have to make themselves, but Dora doesn't re-- So Dora obviously doesn't replace doctors, but it just takes a hugely time-consuming task off their plate and gives them their time back.

  10. 1:55

    Um, so far, we've done around two hundred thousand real clinical calls within the UK across twenty hospitals, and we are contracted to scale to a million patients in the next two years.

  11. 2:04

    Um, we also, um, released our product in the US this year, and we are live in, in, in two clinics, and we've signed up for six more clinics across four different states.

  12. 2:15

    So I'm just gonna, for, for a bit of better context, I just wanna do a quick de-demo of what the experience with Dora is actually like.

  13. 2:22

    That's not uncommon after cataract surgery. Are you having trouble seeing clearly at a distance, up close, or both?

  14. 2:30

    Um, at a distance is fine. It's just, um, up close that, um, it's a bit... It's-- I'm having a bit of trouble with that.

  15. 2:40

    So when exactly did you first notice it was a bit blurry when trying to read or see things up close?

  16. 2:47

    Um, well, really just, uh, after the surgery.

  17. 2:53

    And I was wondering-

  18. 2:54

    Okay.

  19. 2:54

    -how long it would last.

  20. 2:57

    So you're asking about the duration. That's understandable. Blurry vision should improve rapidly in the first few days after surgery.

  21. 3:04

    Okay. Um, also, um, is it all right if I go swimming again?

  22. 3:09

    You should avoid swimming for a month after surgery. That's just to be on the safe side and help your eye heal properly.

  23. 3:16

    Ah, right. Okay.

  24. 3:18

    Awesome. So as you just heard, sometimes Dora asks about symptoms. It gives advice sometimes. It, it answers questions, and when it does this, this makes it what's called a medical device, and therefore it has to, of course, be regulated.

  25. 3:34

    Um, and we have to prove that it's safe. And regulation essentially bottles down to three main questions: What does your software do? What could go wrong? And how do you ensure that it doesn't?

  26. 3:45

    For normal software, it's quite tractable, the question, but for a model that te-- talks to actual patients, what could go wrong is quite huge.

  27. 3:53

    So where do we start? We start from what could go wrong. We start from the harm. What could actually harm a patient? And let's look at some examples. Um, Dora could miss a red flag symptom, such as sudden vision loss or severe pain.

  28. 4:06

    A patient could ask a medical question, and Dora invents an answer, hallucinates something. The patient could be distressed, and Dora just ignores it and carries on without actually acknowledging the distress.

  29. 4:16

    There's many, many, many documented hazards of these, twenty, thirty, forty, and we have to ensure that none of them actually happen in real life.

  30. 4:25

    So how would we actually normally catch a problem like this before it actually spreads? We would lean usually on the playbook that most software ships on. You ship to a small percentage of people, you watch the dashboard, you roll back if it breaks, and you iterate from there.

  31. 4:40

    This is a very good playbook. It's reactive, it's fast, it's very safe, and it's how, uh, the industry u-usually de-risks a launch. But there's a hidden assumption here that it only works because you can afford to be wrong for an instance.

  32. 4:52

    A bad change hits a few users, you can quickly catch it, you can roll back, and no one's actually literally harmed. This is the one assumption, um, is why that it breaks when, when the actual user is a patient.

  33. 5:03

    For five percent, that could be hundreds if not thousands of, of patients that have got unproven changes and un-undue care. Rollback, you can't really roll back. The call has already happened.

  34. 5:14

    The person has already been harmed. By watching the dashboards, the dashboards are just gonna... going red means that a patient was actually hurt. So the reactive loop is actually gone now.

  35. 5:23

    So how do you iterate at all when you can't touch a patient until you're sure?

  36. 5:28

    Well, for this, we started looking at other... at, at examples from other high reliable industries. Uh, uh, the most obvious one is self-driving cars. Obviously, we're in SF now.

  37. 5:37

    There's a lot of Waymos driving around. They've only just come to London, unfortunately, very, very late to the, to the party. But what did, what did self-driving cars do?

  38. 5:45

    Well, they didn't just drive around crashing into walls and say, "We won't do that again," and then doing another RL loop. They put millions of miles of simulations first before they actually got any pa-- um, passengers in, into the car.

  39. 5:58

    For us, we believe in the same thing. Simulation is only re-- the real ethical option we can go with. You can't run all the hazard-- the hazards I just mentioned on real people as a first grasp.

  40. 6:10

    So for our clinical history-taking, we built a simu-simulation framework called MATRIX. And I'm gonna work through how it works and how we use it to prove that our product is safe.

  41. 6:19

    And, uh, the paper's on Archive if you want to read it, along with some of the other research that we do.

  42. 6:24

    At its core, MATRIX recreates a real clinical work con-conversation, but with no real patient in it. We use an LLM to play the patient. We call it PathBot. And what does it do?

  43. 6:36

    We use a simulated patient and not a hired actor because hired actors don't scale. If we wanna iterate very fast and simulate different things at the same time, while also updating our system, um, hiring actors would just be too slow of a process.

  44. 6:50

    So f- as a first version, we just use a simulated patient.

  45. 6:54

    The simulated patient is conditioned on the actual scenario we want to test. The scena-scenario defines exactly what the patient should try and do when talking to our agent. For example, asking whether the agent is a human or a, or an AI.

  46. 7:09

    PathBot then has a conversation with Dora, our target system, and then ge-generates simulated dialogues. Very importantly, this all happens under a very specific clinical use case context, so the scenarios are grounded in real clinical workflows and not abstract situations.

  47. 7:25

    So how do we actually make sure that the, the patient is realistic?

  48. 7:31

    If, if PathBot is, is sounding robotic, the tests aren't really worth much, so we had to, of course, validate it. The first thing we did was just a pure, um, script adherence check.

  49. 7:41

    If we told PathBot to do something, does PathBot do it? Yes or no?

  50. 7:46

    This helped us filter out a lot of maybe weaker models that, that were-- that didn't listen to instructions properly. But just purely, um, following instructions does not make a realistic patient.

  51. 7:55

    We want a patient that flows more realistically like a, like a real person.

  52. 8:00

    So we set up what's called a PPI study, a patient and public involvement study. We took real patients, and we showed them two sets of conversations. One conversation was w-between a real doctor and a real patient, and one conversation was between Dora and PathBot within our MATRIX framework.

  53. 8:17

    And we showed them these two examples side by side and said, "Looking at the patient, can you tell which one is the real person and which one is the simulated person?"

  54. 8:24

    So I'm gonna just wait for a few seconds here if you guys wanna quickly read the two conversations. Um, maybe we can do a, do a hands up. Who thinks conversation A is the real person?

  55. 8:35

    Who thinks, who thinks conversation B is the real person?

  56. 8:40

    Okay. I think us as, as engineers sometimes are pretty good at, at finding these things, but, um, it was actually much more difficult than we thought. And we did this with four conversation sets, basically.

  57. 8:51

    In three out of the four, the majority of people actually thought that the simulated patient was more realistic. But the most important thing that we found was, of course, there is no single realistic patient.

  58. 9:01

    That doesn't really make sense. Some people prefer to speak more v-verbosely, a lot of ums and uhs. Some people are more straight to the point, a lot of yeses and nos.

  59. 9:09

    But the point is that we actually want to simulate all these different scenarios. We want to simulate people with very diverse personas. Um, but what it did show us is that at least our PathBot was realistic enough, um, for this simulation.

  60. 9:23

    Okay, so now you've got thousands and thousands of simulated dialogues. Are us as the engineers gonna go read through them one by one and see if a hazard happened?

  61. 9:31

    Of course not. It doesn't scale at all, for one, and number two, we aren't clinicians, so we don't actually know if an actual hazard has really occurred.

  62. 9:39

    So we use another LLM as a judge, of course, and we call it BevJudge. It takes the simulated dialogue, a, a set of expected behaviors, and the hazardous scenarios that we talked through with clinicians, and it makes a judgment pass or fail.

  63. 9:52

    If it fails, it gives us a reason why it gave that answer. So we get, we get a structured output of which hazard were triggered and what actually went wrong in that scenario.

  64. 10:03

    So how did we validate BevJudge? Uh, we val- we validated BevJudge against expert clinicians. We had-- we created a corpus of two hundred and forty examples, and we had a ground truth of whether a hazard existed in these conversations, yes or no.

  65. 10:15

    Then we got ten clinicians from ten clinical specialties to, to label them for whether they had a hazard or not, and we did the same thing with the judge.

  66. 10:22

    And the results showed that our judge is at least on par, if not slightly better than the, the real expert clinicians. The top model, which as of a year ago when we wrote the paper, was Gemini 2.5 Pro, now we've maybe updated the models, um, it achieved an F1 score of, of zero point nine six, and m-

  67. 10:39

    even maybe more importantly, it achieved almost perfect sensitivity, um, sensitivity being a very important metric to, to healthcare and, and to clinicians, of course, because you wanna make a hundred percent sure almost that this-- that no hazards appear in a conversation.

  68. 10:52

    You would rather over-call hazards that aren't there than under-call hazards that are there. So now we have an automated judge that performs at expert layer-- at, at expert level, and this is actually what makes this whole process scalable.

  69. 11:05

    Okay, so now MATRIX can grade thousands of conversations, but grading isn't technically improving the product. A pile of pass fails tells you where Dora breaks and where it's not safe but doesn't actually make the product better.

  70. 11:17

    So how do you do this without experimenting on the patient? The answer isn't, uh, like maybe, uh, very long ago in our world, eight, eight months ago, we would manually prompt engineer this.

  71. 11:27

    We would look at which agents are going wrong or which, uh, prompts are going wrong, and you'd have to manually prompt engineer. But we know that prompt brittleness is real, and it's, it's quite absurd.

  72. 11:37

    Formatting changes alone have been seen to swing a benchmark by seventy-six percentage points, and reordering few shot examples flips a model from near random, so near fifty percent, to near state-of-the-art on some benchmarks.

  73. 11:49

    And hand-tuning can't survive that. It's very subjective, it's not reproducible, and very importantly, it's extremely time-consuming. So over the last year or so, there's been these prompt optimizers that have started to come out, and we've focused on those.

  74. 12:02

    The one that we use the most is, is Geppa, which stands for Genetic Pareto. It comes from the same, um, people who made DSVY, if, if anyone knows about them.

  75. 12:11

    And how does JePA work? You essentially define a metric for what good is, which I'll, I'll get into a bit later. Then, um, you, you pass your data through, through, um, it-- through, through JePA and, and it tells you which examples failed.

  76. 12:26

    Then you get a very str- strong LLM to reflect on the failures and update the prompt automatically. You do this over and over and over again, and it, it keeps what they call a Pareto frontier of the best prompts until your budget has been exhausted and you've now come up with, with what, what JePA comes up with

  77. 12:41

    the best prompt. So we believe this is a much better process from both, both a time-consuming process, you know, it takes maybe manual prompt engineering would take in the order of hours to days, to this is an hour of minutes.

  78. 12:54

    Normally between thirty and an hour, minutes and an hour, you get an optimized prompt. And very importantly, it's reproducible and there's a very clear audit trail and clear feedback loop.

  79. 13:04

    And if anything goes wrong, you can just maybe-- it, it's purely now a data science problem. It's ma- mainly focused on the data, how to make your data right, the feature engineering, and you define the actual metric along with the clinicians.

  80. 13:18

    So how do you actually know what good is?

  81. 13:21

    Um, it's not a flat accuracy score. You don't want just an average of how your whole dataset did. You give it a cost matrix. So let's go back to our, our sensitivity metric.

  82. 13:32

    Let's say it's very important for clinicians to understand when, uh, when and where a red flag is present. If a red flag is present and you correctly catch it, that's good.

  83. 13:41

    If you, if you miss it, it is-- it could be catastrophic. If there's no actual red flag and it over-cause, um, um, that there's a red flag there, it's just mildly annoying to the patient.

  84. 13:52

    They may need to ask-- answer a couple extra questions, but it's not a cast-- catastrophic harm sit- situation. So we-- what can we do? We can optimize for sensitivity.

  85. 14:02

    We can, we can work with the feedback metric, and we can just make it, um, give a higher reward for finding the red flags and a lower re- reward for, um, for missing them.

  86. 14:11

    So you can optimize for certain metrics. You can also optimize for something else that a, that a, that a phys-- a clinician might want. They might want to optimize for accuracy or might want to optimize for some other metric.

  87. 14:21

    All you have to do is recompile the prompt, and then you've got a, a new, um, optimized prompt.

  88. 14:28

    So remember earlier when we said the re-- we feel like the reactive loop is gone. You ship, watch, and roll back. This is what we believe replaces it. We take real calls, real data.

  89. 14:39

    We, um, we use then synthetic edge cases which may not come up in real calls, such as like rare symptoms or, or mis-transcriptions.

  90. 14:46

    We get an optimized prompt through, through JePA or some other prompt optimizer. Then we pass it through, through something like MATRIX as a simulation safety gate. If anything fails or a- anything doesn't look right, we can redo that whole process, redo the data or, or relabel or get more data.

  91. 15:04

    And then after that, and you're happy with that, then you can do some gated deploy, which we'll get into a bit. Um, the most important thing here is that it's a flywheel.

  92. 15:12

    Every single deployment and every new call produces more call data, so your system is consistently improving.

  93. 15:20

    So as we said with, with our MATRIX framework, we use simulated patients. But however realistic you think they are, of course, they are not real patients. Passing every test in simulation doesn't prove that Dora actually helps someone in real life.

  94. 15:33

    The things might come up in real life that, that you can't get in simulation. It only earns the right to actually try carefully. Simulation is the inner loop. It's fast, it's free.

  95. 15:43

    You can do thousands of runs before anyone actually real is, is exposed. But real patients are the outer loop, and that's where the only real proof is. So simulation is necessary, but it's not sufficient.

  96. 15:55

    Simulation earns the right to, to, to test on real people and then eventually real patients. But you don't just flip a switch. You cross it in stages, and each stage earns the ri- the right for the next.

  97. 16:05

    After you've done your simulations and you're happy with the results, you might do a round of user testing. Then you get supervised clinical evaluation based on those tests, and, and you, and you base it on real patients.

  98. 16:16

    You can do some voice actors, but of course, the, the most realistic is to get real patients. But in this step, it's very important that there's clinicians at every step in the loop.

  99. 16:25

    Then you can do some deployment, uh, but it's still monitored. And how much an autonomy you allow the system to do depends on your evidence. As the system gets more evidence, you can give it more independence.

  100. 16:37

    And underneath all of this, um, every call, every dataset, and every pinned, um, prompt, every judge verdict traces back to the exact hazard that it addresses. That's the real deliverable.

  101. 16:48

    The important thing is that you don't ship the model, you ship the evidence when trying to regulate.

  102. 16:53

    So what can you take back to your own stacks, both in healthcare and, and other areas? You first have to define exactly what harm is for your product. You have to manufacture your rare but dan-- but dangerous cases.

  103. 17:03

    Don't wait for them just to happen naturally. Make your ev- evaluation metric your real cost function to optimize. Pin your pro- prompt versions and keep the traces. These are the important things.

  104. 17:15

    The important thing also is that the, the work is never done. As you move into new modalities or new languages, there will always be new hazards that start to arise.

  105. 17:22

    But with something like MATRIX and a, and a prompt optimization loop, um, you can use the same framework as new modalities arise. You know, when you move into voice, for example, there's things like backchanneling and interruptions, which, which breaks a lot of the, the text evals.

  106. 17:38

    For example, an agent might be mid safety advice, like, "You must avoid bright lights and..." When the patient maybe, um, um, cuts in with some, um, o- out of scope question, and weaker models usually just forget about the safety advice and just ask-- answer the next question.

  107. 17:54

    But MATRIX captures these things. Um, o- other things that, that usually go wrong that we've tested is that, um, the, the patient could-- the, the Dora or, or an agent could be halfway through giving some safety advice and a backchannel just, just cause the model to just completely ignore the safety advice and, and stop right there and,

  108. 18:12

    and wait for the patient to, to say something else. The failure models-- the failure modes change, the framework doesn't. You still black box the system, write down the new hazards, and simulate and judge them exactly the way that we did over text.

  109. 18:25

    Voice is just a new module in the same safety case, and we actually use MATRIX in the voice space to do these exact same things. So whatever modality you move into, you're not starting over.

  110. 18:34

    The same approach finds the hazards before a real user does.

  111. 18:38

    So again, you simulate before it ever touches a patient, and you use an optimization loop to actually improve the system. Thank you very, very much for coming to listen.

  112. 18:47

    Um, I'm very, very open to, to talking more about this. And if you want to connect during the conference or after, there's my LinkedIn and socials. Thank you very much. [audience applauding] [upbeat music]