What happens after
you press SOS

Five things start at once. The phone works out what is wrong and how urgent it is, picks a hospital, sends that hospital your details, and gets your family and a driver moving. Each section below covers one of them.

What goes out after one press
SOS1Shared room openslive location shared2Hospital is toldpartner hospitals only3Family notifiedpush alert, live map4Driver routedturn-by-turn in app2, 3 and 4 start at the same time

The hospital step only happens if the hospital is a Relay partner. Everything else happens for everyone.

Working out what is wrong

The phone makes the first call, even with no signal.

You can say what is happening or tap a type. The classifier runs on the phone itself, so it still works in a basement, a lift or out in the country. If the wording is ambiguous it asks a larger cloud model, and if there is no signal for that, it goes with its own best guess.

Where the decision gets made
Symptoms inPhone's modelconfident, 61%Hospital chosenunsure, 39%Ask cloud model94 KB, no signal needed

Most cases finish on the phone. The dashed path is only used when the phone is not confident.

The decision path
yes (61%)no (39%)no signalanswerSOS pressedvoice or tapOn-device triage0.07 ms · offlineConfident?threshold 0.40Dispatchhospital chosenAsk cloud model3.5 s timeoutBest on-device guessnever dead-end
Time to a decision (measured)
On-device0.11 ms

no network involved

Cloud model155 ms

plus whatever the signal costs

Both bars are on the same linear scale. The on-device one really is about 1,400 times shorter.

Where cases get settled
61%ON DEVICE

61% of test cases were settled on the phone, offline, with no errors on the held-out set. The other 39% were the ambiguous ones, and the cloud model handles those better, so they go there.

Accuracy, including where the cloud model wins
Llama 3.1 8B (cloud)96.4%

more accurate than ours on raw classification

Relay, on-device85.7%

when it would have been wrong, it handed off instead of guessing

Relay, when confident100%

the 61% it chooses to answer

Tested on 28 phrasings the model had not seen before. The 8B cloud model is more accurate overall. Ours is built to hand off when it is unsure.

Choosing a hospital

The nearest hospital can be the slowest way to get treated.

A heart attack needs a catheterisation lab. If the nearest ER does not have one, it will stabilise you and then transfer you, and that transfer uses up the minutes that count. So distance gets the least weight in the ranking.

Which hospital gets picked
0 min4 min8 min12 minNearest hospitalNo cath lab4 minSecond hospitalNot accepting (diverting)9 minHeart centreCath lab, accepting11 min ← chosen

An illustrative example. Drive times come from road-network routing. Cath lab and diversion status come from what each hospital reports.

How a hospital gets chosen
yesCandidatesall nearby facilitiesReal drive timeone matrix callTrafficlive, or time-of-dayCapabilitycath / stroke / traumaAccepting?diversion statusRankedbest first
How urgent it is

A single reading tells you less than the trend.

When you log vitals, the score is plain arithmetic on published thresholds: the vital-sign parts of NEWS2, the early-warning score hospitals use to spot patients who are getting worse. The same numbers always give the same result, and every point can be traced back to the reading behind it.

Seven readings from one made-up patient
Low (0–4)Medium (5–6)High (7+)0246810each one alone: low11122334456687ReadingNEWS2 score

Real NEWS2 thresholds, made-up readings. Readings 3, 4 and 5 each count as low on their own, but put side by side they are already climbing two readings before the score reaches medium.

What each vital can contribute
Respiratory rateup to +3

≤8 or ≥25 scores 3

Oxygen saturationup to +3

≤91% scores 3

Systolic BPup to +3

≤90 or ≥220 scores 3

Pulseup to +3

≤40 or ≥131 scores 3

Any one of these scoring 3 escalates on its own, even if the total is low.

Two layers, only one of them validated
can never reach highVitals loggedPartial NEWS2validatedPersonal baselineheuristicLevel + reasons

The personal baseline is not clinically validated, so it can raise a low score to medium but never to high. A test enforces this.

Shown on every alert

NEWS2 uses seven measurements. Relay can record all seven, but only the ones you enter, and a phone cannot take your temperature, judge your level of consciousness, or tell whether you are on oxygen. When anything is missing, the score is marked partial and lists what is missing. A partial score can only under-estimate risk. If it says high, get help. If it says low, that is not a reason to skip getting help. Relay supports a decision; it does not diagnose.

Telling everyone else

Your family, the hospital and a driver find out together.

When SOS goes off, a shared room opens. Family see your live location and the same countdown you do. If you stop responding, someone with you can take over. If the hospital is a connected partner, its emergency board gets your blood type, allergies and medications before you set off. The app only says the ER is expecting you once a real person there has confirmed it.

What starts, and what depends on what
escalatesSOSthe pressRelay room opensrealtime, sharedER board alertedprofile sent aheadCare circle notifiedpush + live mapRide dispatchedturn-by-turn in appGuardian watchif you go quiet
Getting there

Directions are built in, so nobody has to switch apps.

If a frightened family member jumps to a separate maps app, the hospital brief, the arrival time and the shared room get left behind. So turn-by-turn lives inside Relay: vector maps, a camera that follows the car, snap-to-route, a wake lock so the screen stays on at junctions, and a night mode.

The navigation loop, every GPS tick
yesnoretryGPS fixevery ~1sSnap to routewindowed searchMatch good?Advance stepcamera + voiceFull re-scanafter a GPS jump

The re-scan branch is there because of a real bug: after a GPS jump, the old search locked onto the wrong part of the route and reported about half the real distance.

Set it up before you need it

It takes a few minutes. Your profile is what the hospital, your family and the triage model all work from, so it has to exist before the night you need it.