Inspiration

Suturing is learned by repetition, usually with someone experienced watching over your shoulder. We wanted to see whether a headset could show a trainee where each stitch goes, and let them ask questions out loud without stopping to look anything up.

What it does

A trainee wears a HoloLens (1st generation) over a forearm with a 42 mm "laceration" drawn in green marker. A Mac shows the wearer's point of view to the audience and draws the guidance on top, in six steps:

  • Scan: a scan line sweeps the picture and the wound is found.
  • Assess: a dimension line on the wound.
  • Under the skin: the radial and ulnar arteries, a superficial vein, the median nerve and a danger zone, drawn in a window around the wound. This is a teaching diagram laid out from the wound, not a scan.
  • Plan: five simple interrupted sutures, 8 mm apart, 5 mm bites.
  • Stitch: a needle, thread and knot animation for each suture, then a feedback card.
  • Debrief: sutures, average spacing, depth and time.

Say "Hey Gemini" (or hold a button) and ask a question. The Gemini attending answers aloud, with the current step as context. It can show an answer card, highlight a structure, look at the current picture, and move between steps. It cannot skip steps or place sutures.

What is measured and what is scripted: the wound's position, direction and on-screen length are tracked live from the marker line. The 42 mm is the marker's known length, which turns pixels into millimetres. Each suture is placed when the operator presses Next; nothing detects the stitch itself. The spacing and depth shown after each suture and on the debrief are scripted values from the plan. The suture count and the time are real.

Simulated training on a model. Not medical guidance.

How we built it

  • VIPER Vision, the main build: a Mac web app in TypeScript and Vite (no framework) with a small Node server. Canvas 2D draws everything pinned to the picture; the panels are DOM and move on one spring (Motion).
  • Video input: the HoloLens Mixed Reality Capture live stream from Windows Device Portal, relayed by the local server. The Mac webcam, a recorded video or a drawn simulated arm are fallbacks.
  • Wound tracking: a colour mask for the marker, connected blobs, a line fit and One Euro filtering. Glowing hologram lines in the stream are rejected, since ink on skin never glows.
  • Hand tracking: MediaPipe Hand Landmarker in the page. The fingertip or pinch point reads "Aligned" when it is on the current target.
  • Gemini attending: Gemini Live through the @google/genai SDK, opened from the page with single-use ephemeral tokens issued by the local server, so the API key never reaches the browser. Tool calls handle answer cards, highlighting, looking at the picture, and reading and moving the procedure.
  • Hands-free: Chrome's Web Speech API listens for "Hey Gemini" and opens the Live turn with the last 1.8 s of audio so the question is whole. Push-to-talk is the fallback. Nothing is sent to Gemini while it is thinking or speaking.
  • One state machine drives the procedure from the keyboard, a clicker, a phone remote over WebSocket, autoplay, or Gemini's tool calls.
  • HoloLens app: Unity 2019.4 and C#, a holographic body generated procedurally at runtime (no third-party model), placed with gaze and air tap.
  • Windows tooling in PowerShell for build, deploy, hotspot, stream checks and recording. ffmpeg for repackaging and recording, Playwright for testing.

Challenges we ran into

  • The HoloLens 1 renders everything on its own GPU, and Holographic Remoting may not work on the Windows 11 laptop we had. Partway through, we moved the overlays and Gemini off the headset and onto the Mac. The headset now shows only a light holographic body.
  • The headset's own holograms appear in the stream, and some are green like the marker. The tracker had to learn to ignore lines that glow.
  • Stream delay. We built an adaptive live-edge player and a glass-to-glass lag probe. On a fake headset stream the player sits 90 to 160 ms behind the newest frame (it was up to 450 ms before). The delay on the real headset is not measured yet.
  • Keeping a live demo from breaking: a dropped stream holds the last frame and reconnects by itself, and the procedure carries on if Gemini is unreachable.

Accomplishments that we're proud of

  • The whole procedure runs end to end on one state machine, from a key, a clicker, a phone, autoplay or Gemini.
  • A 90-minute soak test (headless Chrome, fake headset): 96 full runs, no errors, 60 fps, memory flat.
  • A full run of the final build held 60 fps in every step on the Mac, with 0 slow frames out of 3,433 (fake headset input).
  • Gemini can drive the procedure but is not allowed to skip steps or place sutures.

What we learned

  • Say plainly what is measured and what is scripted.
  • Keep the headset light and do the heavy drawing on a laptop.
  • Ephemeral tokens keep the API key out of the browser.
  • Every input needs a fallback for a live demo: webcam, recorded video, and a simulated arm.

What's next for VIPER

  • Measure the real headset stream delay, and test wound and hand tracking on real headset footage with the holographic body in view.
  • Detect the stitch itself and measure spacing and depth from the picture instead of scripting them.
  • Finish Arm mode (a three.js exoskeleton around a bare forearm) or drop it.

Built With

Share this project:

Updates

Submission history