Inspiration

Opportunities to practise difficult conversations with patients are limited, and patients communicate with more than words. We wanted a virtual patient who also reacts to how you enter the room, where you stand and whether you look at them.

What it does

  • The encounter starts before the chair: knock and enter on the ward, call the patient into the clinic, or get stopped by a relative in the corridor.
  • Relatives speak with their own voices. You can ask them to step out or take them aside. Confidentiality depends on the patient record and the patient's consent.
  • The patient reveals sensitive facts depending on trust, shows cues such as hesitating or looking away, and performs neurological exam steps.
  • The webcam reads body language such as eye contact, distance and eye level.
  • Training mode gives live hints. Test mode gives feedback at the end.
  • After severe bad news, the scene freezes once for a multiple-choice question. ## How I built it TypeScript, Vite and three.js with TalkingHead avatars, OpenAI Realtime over WebRTC for voice, MediaPipe for body language, and a Node/Express server. Each case is a structured file, modelled on a doctor's letter, that serves as ground truth. Rule-based checks score what they can, and an LLM judges the rest. ## Challenges I ran into A simple question broke the voice patient's role: asked to do the woman's voice, it said it could not switch. We added role-safety rules and a detector that steers the model back. A small local model also revealed facts too early or skipped actions, so we added rules around the model. ## Accomplishments that I'm proud of One app that goes from the hospital corridor to a feedback report, where every rubric item has a weight and a stated reason. ## What I learned A realistic patient needs clear rules around the model: what the patient knows, who is in the room and who may hear it. ## What's next for Optisentry Clinician review of cases and weights, comparison with examiner ratings, more cases and a distinct avatar for each relative.

Built With

Share this project:

Updates

Submission history