DEV Community

Cover image for CrossRoads: A Mirror, Not a Verdict - Exploring Difficult Decisions with SmartSpectra
Pawan Singh Bhandari
Pawan Singh Bhandari

Posted on

CrossRoads: A Mirror, Not a Verdict - Exploring Difficult Decisions with SmartSpectra

Presage SmartSpectra SDK Challenge Submission

This is a submission for the Presage SmartSpectra SDK Challenge

What I Built

"My gut says..." How many times have you said that about a choice you couldn't make? Move to another city for a job, or stay. Study abroad, or start working. Say the hard thing to someone, or keep the peace. I have said it about all three, and I could never tell you what my gut was actually saying.

CrossRoads is a Windows desktop app for that moment. You type your two options. Then, for about four minutes, you imagine living each one, twice, in a mirrored order (A, B, B, A), while a camera reads your pulse through the Presage SmartSpectra SDK. At the end you get a mirror, not a verdict: which option your body stayed calmer with, the moment that moved you most, and a few questions to sit with.

The answer shows which way your body leaned:

  • One option kept you calmer, and the other made you tenser. CrossRoads names which one, and asks whether that tension was fear or excitement.
  • Or both felt the same to your body. Then the choice is about what you value, not what you fear. That is an answer too.

The idea is inspired by the somatic marker hypothesis: the body reacts to options before the mind can explain why. CrossRoads makes those reactions visible. It is for life decisions, never for health or treatment decisions, and it is a reflection tool, not medical advice.

Demo

Left: me during a real check, filmed by my brother. Right: the same session replayed in sync, with the pulse the SDK read from an ordinary camera

A real check: imagining telling my parents, while my pulse climbs.

Try it without a camera or a key: download CrossRoads from the GitHub Release and click Try the sample. It opens a real session I recorded and replays it. (Windows may show "Windows protected your PC" because the app is not code-signed: choose More info, then Run anyway.)

The result of that check: the answer, and the crossroads drawing itself in with the calmer path thicker

Pulse through the session: reliable readings in black, lower-confidence readings faint, each visit's average in its option's colour

Code

github.com/PawanBhandari03/smartspectra-challenge (MIT). The README has the run-from-source steps (Windows 10/11, Node 20+, npm install, npm start, plus a free Presage API key) and a "How judges can test" section. The Windows installer and a portable version are on the Release page.

How It Responds to Human Signals

What it reads. CrossRoads asks the SDK for seven measurements: chest and abdomen breathing, breathing rate, pulse, HRV, blinks and expressions. Pulse decides the result; breathing, blinks and expressions are shown live alongside it.

How it responds live. The session screen draws your pulse for the last 40 seconds in the colour of the option you are imagining, a heart beats at your measured rate, and the camera check tells you in plain words when the light is too low or the frame rate is too slow. The SDK runs in Electron's main process with native camera capture and a preload bridge to the screens.

What building it taught me. My first version imagined each option once and compared it with a calm baseline. Two lessons came quickly. First, only 10 frames per second reached the SDK, which needs 25 or more: the window-based mode copied about 3.6 MB per frame. Native capture in the main process fixed it, and a phone used as a webcam held a steady 30 fps. Second, I ran a control that should show nothing, tea vs coffee, and it showed a bigger difference than a real decision: the body drifts during a session, and with one visit per option that drift looks like a preference.

The method. So each option is now visited twice in a mirrored order (A B B A, or B A A B), and the two options are compared with each other, which cancels the drift. For each visit CrossRoads takes the median of reliable pulse readings: stable, confidence of at least 50, skipping the first 15 seconds while the reading settles, ignoring readings for 10 seconds after a signal dropout, and dropping physically impossible jumps. A calmer option is named when both rounds agree and each difference beats max(the visit-to-visit wobble, 6 bpm). I tuned that 6 bpm on my own recordings: a resting pulse can drift 6 to 9 bpm from one minute to the next by itself, so CrossRoads only speaks up when the difference is bigger than that, in both rounds.

Tested on real decisions (daylight, a phone camera):

Decision Gap in round 1 Gap in round 2 What CrossRoads said
Tea vs coffee (a control with nothing to find) 5.0 bpm 3.9 bpm Neutral, exactly as it should be
A quiet afternoon at the beach vs giving a speech to 1,000 people 10.0 bpm 8.1 bpm Calmer with the beach
Telling my parents I want a different career vs keeping the path they chose 10.7 bpm 9.4 bpm Calmer with keeping the path (87% stable readings)
Staying in my city vs moving to Bangalore 0.3 bpm 0.3 bpm, the other way No side: a values decision for me
A master's abroad vs starting work 2.1 bpm 8.0 bpm, the other way No side, but it pointed to the moment that moved me most: +8.4 bpm at "what did you give up for it?"

The numbers for every session are in docs/VALIDATION.md.

Built to be testable. A free replay mode plays recorded sessions as if live, which mattered because the free trial gave 100 credits (a four-minute check costs about 8). Signal Lab shows the raw SDK output. 48 automated tests run on every push.

Prize Categories

I am entering all three: Best Overall Human-Sensing Experience, Most Creative or Delightful Use and Best Thoughtful Real-World Use. (An entry can be considered for all three, but can win only once.)

Best Overall Human-Sensing Experience. The whole experience is built from a person's real-time signal. Your pulse is drawn live in the colour of the option you are imagining, a heart beats at your measured rate, and the result is made of how that pulse changed between two options. It is tested against a control and a calm-vs-stress scene, so the response to the signal is meaningful, not decorative.

Most Creative or Delightful Use. I wanted a camera vital-signs SDK to help with a human question instead of a fitness or stress score. The result screen is a crossroads that draws itself in, with the calmer path thickening (or both staying equal when your body didn't pick a side). The look is a warm paper-and-ink "decision journal", with a dark mode. After a check you can save your decision and a share card: a picture of the answer with the option you chose and no pulse numbers.

Best Thoughtful Real-World Use. The need is common: people stuck between two options who want to reflect, not be told. CrossRoads is designed around consent and trust. Consent sits beside the options with a required tick. There is a REC badge and live preview whenever the camera measures, a "Hide me" blur, and a Focus mode that hides the live numbers. Data stays on your computer and can be deleted. The sample works without a camera or key, and the app says up front, in plain words, if a live check needs a key.

Consent and Data Handling

  • Consent. Before any measurement, a card beside the two options explains what happens and asks for an explicit tick. The camera is on only during the camera check and the session. A REC badge and live preview show when it measures. You can stop at any time. If imagining an option feels upsetting, stop and take a break.
  • Storage. CrossRoads stores numbers (pulse, breathing, blinks, expression scores), your two options and an optional note, on your own computer. CrossRoads never saves or uploads your video. It asks the SDK for only seven measurements, and a test fails if that list grows. Your Presage API key is stored encrypted with Windows safeStorage and is never in the download.
  • Sharing. CrossRoads shares nothing automatically. "Save as image" writes a picture only where you choose, and it contains no pulse numbers.
  • Retention and deletion. Data is kept until you delete it. You can delete one check from My decisions, delete everything or remove the key in Settings. Uninstalling leaves the data folder in place.
  • What the SDK contacts. When a live session starts, the SmartSpectra SDK contacts Presage to check the API key and credits, authorise the requested measurements, register the device and download its models. SDK telemetry is switched off.
  • AI services and tracking. The app uses no AI service, has no accounts and no analytics.
  • Not medical. CrossRoads is a general wellness and reflection tool. It makes no diagnosis or treatment claims and is meant for one person reflecting on their own decision, never for monitoring anyone else.
  • Best results. Daylight on your face and a steady camera. Windows 10/11.

Built with the Presage SmartSpectra SDK, Electron, esbuild and electron-builder, and the Newsreader typeface (SIL Open Font License) via Fontsource.

Your head has arguments for both sides. Your body has something to say too. CrossRoads shows it. A mirror, not a verdict.

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.