Inspiration

Medical students learn history-taking with actors who play patients. Actors are expensive and hard to book, so most students get a handful of sessions. Avelios asked for a patient you can talk to "at 11 pm, with no one watching". We wanted one that behaves the way real patients do: they play things down and leave out the awkward parts until they trust you.

What it does

You talk to a virtual patient by voice. The patient has a face, a character and a full medical story, describes symptoms in lay terms ("tightness on the stairs") and tells you the sensitive parts only if you ask well.

Rules in code decide what the patient may say, and the language model only phrases it. That is how we keep invented and contradictory facts rare. Six cases combine with six personalities, so the same illness sounds different from an anxious patient and a stoic one.

A camera watches the student's smile, eye contact and nodding. The patient's trust and expression react in about a second, and a patient who is ignored says so. The picture is analysed in the browser. Our server gets labels like "smiling" and no image.

After the interview you see what you found, what the patient held back and what you never asked. Teachers can create their own cases and see where their course gets stuck.

How we built it

Next.js and TypeScript in front, FastAPI in Python behind it, with one typed contract file between them. Cases are YAML files in which every fact has a condition that unlocks it. On each turn two small OpenAI models run in parallel: one speaks as the patient, the other rates how the student asked. The voice runs on OpenAI's live speech-to-speech model, the face is an Anam video avatar with a 3D fallback, and MediaPipe reads the student's face in the browser.

Challenges we ran into

The first version took 13 to 21 seconds to react to a smile. It now takes about one.

Our own evaluation caught the patient lying. Asked about something it was not ready to share, it sometimes answered "I don't smoke" where it should have dodged. We changed the rules and measured again.

The camera was noisy. A resting face read as irritated, and a student taking notes looked distracted. We gave up on subtle emotions and kept what a camera sees reliably.

Accomplishments that we're proud of

Avelios asked for proof "beyond one lucky demo run". We scripted 72 interviews with 30 questions each and had an LLM judge read every reply. On the newest run with the current patient (18 interviews, 540 replies, text only):

  • 54 of 54 repeated questions got the same answer late in the interview as early on.
  • 178 of 180 nonsense and trap questions were answered in character.
  • 3 of 540 replies contained a confirmed slip, none of them an invented medical fact. The judge flagged 14 and a second AI review confirmed 3. No human has re-read them yet.

In the full run a blind judge named the right personality in 67 of 72 interviews, where guessing gives 12. The voice path is not measured yet. A 15-minute text interview costs about 7 cents in model calls.

What we learned

An LLM judge over-reports: only 31 of its 92 flags held up on review. Compared with patients played by humans in the public PriMock57 recordings, ours talk longer and ask the doctor more questions back. A camera can tell that someone looks away, but it cannot tell how they feel, so the patient comments on what it sees.

What's next for Tell me more

Measure the voice path the way we measured text. Get a clinician to review the cases, which are our own and not medically reviewed. Make the patients answer shorter, and stop treating harmless facts like weight or sleep as secrets.

Built With

Share this project:

Updates

Submission history