Inspiration
In March 2026, an educator Zhang Xuefeng died after a reported sudden cardiac arrest. The news made us think about what it would feel like to be the person standing nearby when someone collapses. Would we remember what to do first? Would we feel confident enough to act? (https://finance.sina.com.cn/wm/2026-03-24/doc-inhscaew0422946.shtml)
One of our teammates had volunteered at CPR training sessions and worked on a machine learning project to optimize AED placement. Those experiences brought up a question that a map alone couldn’t answer. Even if an AED is nearby, has the person who finds it ever practiced using one?
That’s why we built Rescue Specs, a hands-on CPR and AED training experience for Snap Spectacles. We wanted learners to rehearse the first few minutes of an emergency while there’s time to pause, make mistakes, and try again.
What it does
Put on the glasses in front of a CPR manikin and the lesson appears in your field of view. You can use voice commands or pinch gestures to move through the scenario, and follow an animated beat during compression practice. In the hand-placement exercise, virtual markers are designed to follow your palms as you move toward a practice target. For our demo, the dispatcher call and AED route are simulated.
RescueSpecs turns Snap Spectacles into a hands-on CPR and AED training tool. The Lens guides learners through a simulated emergency in three steps, showing them what to focus on as the drill progresses.
- Call for help. - An in-view prompt cues the learner to practice calling for help and requesting an AED. This rehearses what to say in the first moments of the scenario.
- Practice chest compressions. - The Lens shows where to position the hands on the training manikin and provides a rhythm cue so the learner can practice keeping a steady pace.
- Place the AED training pads. - Visual cues show the two pad locations on the manikin so the learner can compare their placement with the guide.
During the drill, a learner can ask a question aloud. The Lens sends the question to a backend that uses OpenAI to select an approved training card and display it in view. Voice activation is especially useful during compressions, when both hands are occupied. The learner can ask for a reminder without reaching for a phone or tapping a menu. That lets them rehearse staying focused on the physical task under simulated emergency pressure.
We also prototyped a voice-controlled equipment finder designed to mark a possible match for a training prop. The glasses captured paired camera and depth frames, and the model returned a location in a separate test. We still need to verify the full interaction on the glasses. We built RescueSpecs for beginners, including nursing students and new healthcare workers who want more opportunities to rehearse before performing these procedures in a clinical setting.
the AI voice response can answer these following questions precisely: “Ask AI, how fast should I do CPR?” “Ask AI, how deep should I press?” “Ask AI, where should I put my hands?” “Ask AI, when should I use an AED?” “Ask AI, what if they are not breathing normally?” “Ask AI, how do I call for help?” “Ask AI, do I need rescue breaths?”
How we built it
We built the Lens in JavaScript and TypeScript in Lens Studio, ran logic checks locally, and sent builds to Snap Spectacles over USB. We used Snap’s speech recognition for voice input and its hand-tracking tools for the placement exercise. A state machine manages the training sequence and switches to the appropriate screen based on the learner’s input.
We used the OpenAI API on our Node.js backend for bounded voice-question routing and equipment recognition. The backend selects from predefined CPR and AED training content and can synthesize speech for an approved answer. Keeping the lesson sequence in our own code gave us control over what the learner sees and when.
Challenges we ran into
The biggest challenge was getting several parts of an unfamiliar XR platform to work together on real hardware. A scene could export successfully and still leave us with basic questions we could only answer by wearing the glasses. Could we read the instructions while looking down at a manikin? We also had to keep track of what each test proved.
Accomplishments that we’re proud of
We got the Lens running on Spectacles and confirmed voice recognition, pinch input, and camera-depth pairing on the device. We also tested the OpenAI-backed answer flow and generated spoken audio through the backend. The latest answer card and audio playback still need a full on-glasses check.
What we’re most proud of is turning the lesson into something a learner can do. They can respond to a simulated dispatcher, move their hands toward a target, and practice keeping a rhythm. Each interaction gives them a reason to look up from the instructions and work through the scenario.
What we learned
We learned that a good smart-glasses interaction starts with what the learner is already doing. During compression practice, a visible beat can guide the exercise without asking the learner to stop and read. When they have a question, speaking lets them stay in position.
We also learned to be specific about what the glasses can observe. A tracked wrist can help estimate the rhythm of a practice motion. Measuring compression depth, force, or recoil would require a calibrated training setup.
What’s next for Rescue Specs
Our first priority is to test the full lesson with more learners wearing the glasses. We want to improve hand tracking when one hand covers the other, verify the spoken answers and equipment markers, and explore pairing the Lens with an instrumented CPR manikin for more precise feedback.
Built With
- javascript
- lensstudio
- python
- typescript